vaadin/vaadin-radio-button

Add helper text slot and API

juuso-vaadin opened this issue · 4 comments

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 slot helper
  • Add observer to add has-helper attribute when helperText 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

image

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.)

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.

You guys rock!

Fixed by#153