Skip to content
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

Merged
merged 1 commit into from
Jul 17, 2023
Merged

Conversation

oliviertassinari
Copy link
Member

@oliviertassinari oliviertassinari commented Jul 16, 2023

Similar to #37997

@oliviertassinari oliviertassinari added accessibility a11y website Pages that are not documentation-related, marketing-focused. labels Jul 16, 2023
@mui-bot
Copy link

mui-bot commented Jul 16, 2023

Netlify deploy preview

https://deploy-preview-37999--material-ui.netlify.app/

Bundle size report

No bundle size changes (Toolpad)
No bundle size changes

Generated by 🚫 dangerJS against efd3fdf

Comment on lines 41 to +43
id="mui-product-selector"
aria-controls="drawer-open-button"
aria-haspopup="true"
aria-controls={open ? 'drawer-open-button' : undefined}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix

Screenshot 2023-07-16 at 16 13 56

Comment on lines -38 to +65
ref={rightRef}
id="hero-container-right-area"
ref={frame}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix

Screenshot 2023-07-16 at 16 15 06

Comment on lines -257 to +227
<ul ref={navRef} role="menubar" onKeyDown={handleLeftRightArrow}>
<ul ref={navRef} onKeyDown={handleKeyDown}>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix

Screenshot 2023-07-16 at 16 23 09

Per https://www.w3.org/WAI/ARIA/apg/patterns/menubar/examples/menubar-navigation/,

Screenshot 2023-07-16 at 16 23 39

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.

@oliviertassinari oliviertassinari merged commit eee34a0 into mui:master Jul 17, 2023
18 checks passed
@oliviertassinari oliviertassinari deleted the fix-menu-a11y branch July 17, 2023 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility a11y website Pages that are not documentation-related, marketing-focused.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants