-
-
Notifications
You must be signed in to change notification settings - Fork 32.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
[website] Fix a11y issues #37999
[website] Fix a11y issues #37999
Conversation
Netlify deploy previewhttps://deploy-preview-37999--material-ui.netlify.app/ Bundle size report |
9f16247
to
efd3fdf
Compare
id="mui-product-selector" | ||
aria-controls="drawer-open-button" | ||
aria-haspopup="true" | ||
aria-controls={open ? 'drawer-open-button' : undefined} |
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.
ref={rightRef} | ||
id="hero-container-right-area" | ||
ref={frame} |
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.
<ul ref={navRef} role="menubar" onKeyDown={handleLeftRightArrow}> | ||
<ul ref={navRef} onKeyDown={handleKeyDown}> |
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.
Fix
Per https://www.w3.org/WAI/ARIA/apg/patterns/menubar/examples/menubar-navigation/,
it makes more sense to me to use the disclosure pattern as our menu will likely grow to be more complex than what menubar support, this is also what Stripe and Radix did.
Similar to #37997