-
-
Notifications
You must be signed in to change notification settings - Fork 269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Button component accessibility #198
Comments
I love that you care about accessibility. As you can see, we have a lot to improve on the live site. https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA Unless there's a clear need for ARIA attributes (we depart from semantic HTML), I think we can move past this. Since we're not providing onKeyDown, hitting the You can investigate for yourself at http://storybook.operationcode.org/ |
My main motivation for the aria attribute was for #196 (The "Show All" button) screen readers don't detect the additional links unless the button reads as a toggle. |
Ah. Thank you for the context. In that situation, I wonder if an More succinctly, in that situation, I think you can simply unmount the button once clicked, avoiding the issue entirely. If we develop enough content to the point where we'd want the user to be able to "unreveal" the massive list of articles they've just opened up, we'll tackle it then. |
You can treat a button as a toggle to a screen read with the "aria-pressed" attribute. |
Feature
Button component needs accessibility
Why is this feature being added?
Accessibility is very important!
What should your feature do?
Accept aria props.
Handle "onKeyPress" the same as "onClick"
The text was updated successfully, but these errors were encountered: