Add helper text slot and API
juuso-vaadin opened this issue · 4 comments
juuso-vaadin commented
Add slot for displaying text or component related to field.
Baseline implementation has been done for vaadin-text-field. See vaadin/vaadin-text-field#410
All implementations should follow the baseline implementation to achieve the same functionality.
Requirements
- Add
helper-text
part which contains slothelper
- Add observer to add
has-helper
attribute whenhelperText
property is set - Add slotchange event handler to add
has-helper
attribute when content placed in helper slot - Add helper text to
aria-describedby
- Add observer for error message to add
has-error-message
attribute (used to hide helper in material theme when error message is set)
Visual specifications
dflorey commented
Would be great if the helper text would be available on all components that may appear in a form (e.g. dropdown, checkbox group etc.)
juuso-vaadin commented
Would be great if the helper text would be available on all components that may appear in a form (e.g. dropdown, checkbox group etc.)
I can confirm that this is indeed in the making for all the form components.
dflorey commented
You guys rock!
DiegoCardoso commented
Fixed by#153