-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
feat(react-dialog): removes aria-haspopup
#25611
feat(react-dialog): removes aria-haspopup
#25611
Conversation
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: 518d14da9d2d826be43b6dc16ad9914ece82e07c (build) |
📊 Bundle size report
Unchanged fixtures
|
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 c2bdd6b:
|
Perf Analysis (
|
Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
---|---|---|---|---|---|
Avatar | mount | 1594 | 1598 | 5000 | |
Button | mount | 1121 | 1153 | 5000 | |
FluentProvider | mount | 1938 | 1863 | 5000 | |
FluentProviderWithTheme | mount | 749 | 745 | 10 | |
FluentProviderWithTheme | virtual-rerender | 706 | 692 | 10 | |
FluentProviderWithTheme | virtual-rerender-with-unmount | 754 | 752 | 10 | |
MakeStyles | mount | 2276 | 2292 | 50000 | |
SpinButton | mount | 2991 | 3049 | 5000 |
@@ -82,7 +82,7 @@ describe('DialogTitle', () => { | |||
mount( | |||
<Dialog modalType="alert"> | |||
<DialogTrigger disableButtonEnhancement> | |||
<Button>Open dialog</Button> | |||
<Button id={dialogTriggerOpenId}>Open dialog</Button> |
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.
why are all these ids necessary? I don't see them being used anywhere
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.
To make my life easier i just selected every single button at the same time and added them all these ids
, probably they're not necessary on most places..... but it was so many tests that this was the quickest way 🙈
* feat(react-dialog): removes aria-haspopup * chore: updates snapshot * chore: updates e2e trigger selectors
* feat(react-dialog): removes aria-haspopup * chore: updates snapshot * chore: updates e2e trigger selectors
Current Behavior
Currently
DialogTrigger
introducesaria-haspopup
to it's child to ensureaccessibility
.New Behavior
As stated in #25151, we should be using
aria-expanded
instead ofaria-haspopup
aria-haspopup
forDialogTrigger
aria-expanded
forDialogTrigger
aria-describedby
fromDialogSurface
aria-describedby
Related Issue(s)
Fixes #25151