Problem
Webform elements support help text, descriptions, and tooltips. The problem with all three of the options is that long and complex descriptions are not displayed properly and/or consumes too much screen real estate.
Solution
Long complex descriptions should be available toggle-able more content.
Tasks
- Add #more and #more_title properties
- Add element.default_more_title to webform.settings.
- Update scheme
- Move #help, #description, #description_display to Element Help/Description details container.
- Add #more and #more_title to translations
- Add webform.element.more to libraries with CSS/JS
- Update the Style Guide
- Make sure 'description' is not broken when moved.
- Create test form.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | add_more_hide_show-2914153-7.patch | 30.01 KB | jrockowitz |
| #4 | add_more_hide_show-2914153-3.patch | 24.52 KB | jrockowitz |
Comments
Comment #2
jrockowitz commentedComment #4
jrockowitz commentedComment #7
jrockowitz commentedComment #9
jrockowitz commentedComment #11
esod commentedI confirm that #more, #more_title, #help, #description, and #description_display are working as expected. WebformElementMoreTest runs successfully as well.