-
Notifications
You must be signed in to change notification settings - Fork 2.9k
fix: v8 Dropdown no longer sets incorrect and unnecessary aria-activedescendant #24593
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
Conversation
|
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 f912df5:
|
Asset size changes
Baseline commit: d1e8f0764fb477271da45f0dd1f4c1b3beb06699 (build) |
📊 Bundle size report🤖 This report was generated against d1e8f0764fb477271da45f0dd1f4c1b3beb06699 |
Perf Analysis (
|
| Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
|---|---|---|---|---|---|
| BaseButton | mount | 724 | 702 | 5000 | |
| Breadcrumb | mount | 2217 | 2376 | 1000 | |
| Checkbox | mount | 2203 | 2190 | 5000 | |
| CheckboxBase | mount | 1943 | 1853 | 5000 | |
| ChoiceGroup | mount | 3545 | 3797 | 5000 | |
| ComboBox | mount | 723 | 801 | 1000 | |
| CommandBar | mount | 8895 | 8524 | 1000 | |
| ContextualMenu | mount | 10274 | 10539 | 1000 | |
| DefaultButton | mount | 960 | 956 | 5000 | |
| DetailsRow | mount | 3154 | 3023 | 5000 | |
| DetailsRowFast | mount | 3250 | 3216 | 5000 | |
| DetailsRowNoStyles | mount | 3002 | 2899 | 5000 | |
| Dialog | mount | 2542 | 2449 | 1000 | |
| DocumentCardTitle | mount | 148 | 155 | 1000 | |
| Dropdown | mount | 2810 | 2547 | 5000 | |
| FocusTrapZone | mount | 1626 | 1574 | 5000 | |
| FocusZone | mount | 1427 | 1487 | 5000 | |
| IconButton | mount | 1464 | 1437 | 5000 | |
| Label | mount | 300 | 278 | 5000 | |
| Layer | mount | 3808 | 3620 | 5000 | |
| Link | mount | 393 | 347 | 5000 | |
| MenuButton | mount | 1249 | 1224 | 5000 | |
| MessageBar | mount | 1818 | 1707 | 5000 | |
| Nav | mount | 2700 | 2702 | 1000 | |
| OverflowSet | mount | 886 | 835 | 5000 | |
| Panel | mount | 2040 | 1984 | 1000 | |
| Persona | mount | 766 | 829 | 1000 | |
| Pivot | mount | 1176 | 1103 | 1000 | |
| PrimaryButton | mount | 1062 | 1039 | 5000 | |
| Rating | mount | 6252 | 5938 | 5000 | |
| SearchBox | mount | 1018 | 1002 | 5000 | |
| Shimmer | mount | 2409 | 2271 | 5000 | |
| Slider | mount | 1644 | 1511 | 5000 | |
| SpinButton | mount | 4136 | 4029 | 5000 | |
| Spinner | mount | 344 | 387 | 5000 | |
| SplitButton | mount | 2452 | 2593 | 5000 | |
| Stack | mount | 383 | 381 | 5000 | |
| StackWithIntrinsicChildren | mount | 1865 | 1877 | 5000 | |
| StackWithTextChildren | mount | 4353 | 4015 | 5000 | |
| SwatchColorPicker | mount | 9645 | 9746 | 5000 | |
| TagPicker | mount | 2217 | 2056 | 5000 | |
| TeachingBubble | mount | 86051 | 86589 | 5000 | |
| Text | mount | 321 | 325 | 5000 | |
| TextField | mount | 1101 | 1062 | 5000 | |
| ThemeProvider | mount | 1084 | 1082 | 5000 | |
| ThemeProvider | virtual-rerender | 574 | 647 | 5000 | |
| ThemeProvider | virtual-rerender-with-unmount | 1635 | 1739 | 5000 | |
| Toggle | mount | 690 | 678 | 5000 | |
| buttonNative | mount | 114 | 120 | 5000 |
* master: (21 commits) chore: Migrate react-avatar to use new build (microsoft#24969) applying package updates chore(react-input, react-textarea): Deprecating filled with shadow appearance variants (microsoft#24900) fix: v8 Dropdown no longer sets incorrect and unnecessary aria-activedescendant (microsoft#24593) feat: v0 Tooltip migration from v9 (microsoft#24908) chore: bump devDeps to fix critical security vulnerability (microsoft#24891) Fixing Tree chart issues (microsoft#24752) init: new package react-avatar-context (microsoft#24968) ci(.github): add issues write permisions to triage-bot worflow (microsoft#24963) applying package updates fix(Toolbar): close previous submenu when opening another submenu (microsoft#24836) fix: update non-focus-trap Popover role to be group (microsoft#24897) feat: Avatar's aria label includes 'active' or 'inactive' when using the active prop (microsoft#24901) feat(scripts): implement triage-bot module (microsoft#24911) chore: bump @octokit/rest to v18 (microsoft#24919) stress test: add "build-fixture" command (microsoft#24928) BREAKING-CHANGE: new ChatMessageContent for style caching (microsoft#24691) bugfix: fix changefile to properly update version of react-components with a patch (microsoft#24949) feat(scripts): enable strict checking for additional sub-folders(packages) (microsoft#24526) chore: exports DialogContent as unstable (microsoft#24943) ...
The v8 Dropdown uses keyboard focus to move between options when the popup is open, but still sets
aria-activedescendanton the trigger. The attribute currently serves no use, since the trigger does not have focus when the popup is open.Because
activedescendantis based on an internally generatedid, rendering custom options that do not receive the internalidresults in an automated a11y test failure. This PR removes the attribute entirely to fix that issue and simplify the component.