Commit f9490b57823c88d2d4e1cdc8495b8ab60d63862f
Add placeholder to review textarea to entice people to add reviews
Anders Rune Jensen committed on 1/27/2018, 4:30:42 PMParent: aec18c960c4aa8a02c95617175b8a67e715fb95d
Files changed
book/html/layout/detail.js | changed |
book/html/layout/detail.js | |||
---|---|---|---|
@@ -115,9 +115,13 @@ | |||
115 | 115 … | ? '-expanded' | |
116 | 116 … | : '-contracted' | |
117 | 117 … | }) | |
118 | 118 … | ||
119 | - let textArea = h('textarea', {'ev-input': e => value.set(e.target.value), value }) | ||
119 … | + let textArea = h('textarea', { | ||
120 … | + 'ev-input': e => value.set(e.target.value), | ||
121 … | + value, | ||
122 … | + 'placeholder': 'Please add a review to get the conversation started.' | ||
123 … | + }) | ||
120 | 124 … | let textAreaWrapper = suggestiveTextArea(textArea) | |
121 | 125 … | ||
122 | 126 … | return h('div', { classList }, [ | |
123 | 127 … | h('div', name + ':'), |
Built with git-ssb-web