-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Storybook sidebar navigation: aria-expanded should be on button, not parent #18346
Comments
Looks like the problem is right here storybook/lib/ui/src/components/sidebar/Tree.tsx Lines 148 to 162 in f74a04a
Line 155 should be moved down to the CollapseButton |
Hi, I can help out. Could you assign this issue to me? |
can i be assigned this issue? |
hahah im not competent but for what its w0rthl haha, it might help me personally |
This comment was marked as abuse.
This comment was marked as abuse.
Good golly!! I just released https://github.com/storybookjs/storybook/releases/tag/v7.0.0-alpha.7 containing PR #18354 that references this issue. Upgrade today to the
Closing this issue. Please re-open if you think there's still more to do. |
Gadzooks!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.5.10-alpha.0 containing PR #18354 that references this issue. Upgrade today to the
|
Son of a gun!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.5.10 containing PR #18354 that references this issue. Upgrade today to the
|
aria-expanded is meant to be used with button, or some other role. It is currently be added to the parent div with no role making the attribute ineffective.
https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-expanded#associated_roles
Moving the aria-expanded to the button that does the expanding will provide better accessibility to those using screen readers.
The text was updated successfully, but these errors were encountered: