-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
The govRadios component has the following issues:
- The fieldset hint text contains the hard coded id 'changed-name-hint' which links to the
aria-describedbyattribute on thefieldset. Although generally you would only have one set of radios on a page, there may be occasions when multiple sets of checkboxes are required. The hard coded id would prevent the ability to do this as thearia-describedbyvalue would be invalid, causing difficulties for screen reader users to understand its purpose. - If an error message is present a reference should be added to the fieldset
aria-describedbyattribute. - The legend has been implemented as a label and links to a non-existing form input id using the
forattribute. Remove thelabelelement completely from inside the legend element. - The legend currently has to be a heading, add support for plain text as it's not always preferable for it to be a heading.
- Currently the heading sizes (H1, H2, H3) are tied to visual style classes, this reduces the flexibility of the component. For example, if a long heading that is defined as H1 looks overly large, content designers will reduce the size using the css classes to make it more readable. Split the Heading size and visual size up so they can be used in any combination to create the best experience.
- Hard coded "error:" prefix does not allow for language translations.
Metadata
Metadata
Assignees
Labels
No labels