-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
fix(ToolbarMenuItem): missing aria-haspopup when it has submenu #17646
fix(ToolbarMenuItem): missing aria-haspopup when it has submenu #17646
Conversation
/** Indicated if menu item has submenu. TODO: fix types for all behaviours */ | ||
menu?: any; | ||
/** Indicated if menu item has submenu */ | ||
hasMenu?: boolean; |
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.
would it make more sense just to intersect `Pick<MenuItemBehaviourProps, 'hasMenu'> ?
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.
This is a great suggestion, after checking MenuItemBehavior, I changed toolbarMenuItemBehaviorProp to:
export type ToolbarMenuItemBehaviorProps = Omit<MenuItemBehaviorProps, 'vertical'>;
Asset size changes
Over Tolerance (1024 B) Over Baseline Below Baseline New Removed 1 kB = 1000 B Baseline commit: 9c4f38b05c23051bdb7e8eb453b72faf3401d9cc (build) |
Perf AnalysisNo significant results to display. All results
Perf Analysis (Fluent)Potential regressions comparing to master
Perf comparison
Perf tests with no regressions
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 0f09074:
|
…osoft#17646) * fix(ToolbarMenuItem): missing aria-haspopup when it has submenu * changelog * improve typing
Pull request checklist
$ yarn change
Description of changes
Before:
Notice item 'Play' has submenu, but its DOM does not have
aria-haspopup
After:
Focus areas to test
(optional)