You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.
Material Buttons currently have an interior button or anchor element that is not accessible. Buttons must be focusable and have text content or ARIA equivalents. To improve the accessibility of material-button, we should alter the component structure. It's actually not too far off in its current state, but the text content needs to go inside of the button element so it will be read aloud on focus:
The associated CSS should apply hover and focus styles to the internal button element. By using the native element, the role is communicated to assistive technologies by default, and tabIndex is also natively supported.
The text was updated successfully, but these errors were encountered:
Sweet, they are now interactive from the keyboard and accessible to a screen reader! We just need to work on focus styles, by letting :hover and :focus cascade to the actual button or anchor elements instead of material-button. We could leave that for #142.
Material Buttons currently have an interior
button
oranchor
element that is not accessible. Buttons must be focusable and have text content or ARIA equivalents. To improve the accessibility ofmaterial-button
, we should alter the component structure. It's actually not too far off in its current state, but the text content needs to go inside of the button element so it will be read aloud on focus:A more accessible button might look like this:
The associated CSS should apply hover and focus styles to the internal
button
element. By using the native element, the role is communicated to assistive technologies by default, andtabIndex
is also natively supported.The text was updated successfully, but these errors were encountered: