Button usage does not cover toggle buttons or menu buttons #11093
mbgower
started this conversation in
Accessibility
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The following are not strictly accessibility, more usability.
Toggle button
On the Button usage page, the Overview section makes no mention of toggle buttons (a button that can have a pressed or ‘on’ state). An example would be a Mute button in a player. Such a button although similar in function to a Toggle, is typically distinct, in that it keeps a ‘button’ shape but either visually shows as depressed, or else changes its label.
Another would be stars (for rating) . There are a number of other examples if you go to the buttons library and change the select element to Toggle.
The things I’m wondering… Does it make more sense to just have the name be “Star” regardless and the button have a pressed state? Or is it better to alter the name? And which does Carbon implement at the moment?
Menu button
In the same section, there is no reference to button menus (buttons you push to reveal a menu). Potentially these are covered entirely by the Overflow menu, although that seems like a specialized example of one, not the superset.
The ARIA Authoring Practices guide specifies both of these types of button for guidance.
Especially for toggle buttons, some guidance would be appropriate. At the least, i think some guidance in the When to/not to use subsections, and both Toggle and Overflow menu should also both appear in the Related section.
Beta Was this translation helpful? Give feedback.
All reactions