-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
[Breadcrumbs] Fix expand/collapsed Breadcrumbs via keyboard #19724
Conversation
Details of bundle changes.Comparing: f2d74e9...dc883e6
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we change the icon to implement the button role? I'm not sure about this implementation concerning a11y.
@oliviertassinari @eps1lon Could you please check a logic? If it is ok, I will change the tests. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are getting closer. I still think that we need an aria label on the expand icon, otherwise, how can screenreaders know about it's impact?
packages/material-ui/src/Breadcrumbs/BreadcrumbCollapsed.test.js
Outdated
Show resolved
Hide resolved
@@ -52,6 +52,7 @@ const Breadcrumbs = React.forwardRef(function Breadcrumbs(props, ref) { | |||
classes, | |||
className, | |||
component: Component = 'nav', | |||
expandText = 'Show path', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Taken from the aria-label Google Drive uses.
dc883e6
to
c77ae7f
Compare
41f6352
to
42b97a6
Compare
I have rebased on top of #19784 and improved the ripple + hover style. |
@captain-yossarian Thank you for spending time on it! It's a really great improvement for accessibility :) |
Closes #19708