Repository navigation
[accordion] Proposal: align Accordion keyboard navigation with APG - #4965
Conversation
commit: |
Bundle size
PerformanceTotal duration: 1,110.68 ms ▼-528.79 ms(-32.3%) | Renders: 50 (+0) | Paint: 1,672.31 ms ▼-786.04 ms(-32.0%)
…and 6 more (+1 within noise) — details Check out the code infra dashboard for more information about this PR. |
✅ Deploy Preview for base-ui ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
484bc35 to
51d0666
Compare
|
Probably more accurate: " Not sure if props becoming no-ops is confusing but given the guidelines update and deletion of a bunch of code, I'm okay with this as it's not critical behavior. According to Codex:
|
|
I'm fine with this 👍 |
31bbc6f to
4c15039
Compare
| * Deprecated following the [APG guidance update](https://github.com/w3c/aria-practices/pull/3434) | ||
| * to remove roving focus. |
There was a problem hiding this comment.
@deprecated doesn't show up in the docs so added it to the main text. Given it's a no-op now it makes sense to remove the original description as it's otherwise misleading
There was a problem hiding this comment.
I was originally thinking to improve the docgen separately to check @deprecated, but this change makes more sense. Thank you for the update.
Five minor releases (1.3.0 -> 1.7.0, Feb to Aug 2026) across the 27 @base-ui/react modules this repo uses. Of the three breaking changes declared upstream, only one reaches us: `Drawer` was unmarked as preview in 1.3.0, renaming the namespace export `DrawerPreview` -> `Drawer`. 1.7.0 ships no deprecated alias, so the rename is mandatory — the 11 imports under packages/overlays/src/drawer/subcomponents all alias to `BaseDrawer`, so only the import specifier changes. The other two (`sanitizeValue()` -> `normalizeValue()`, `OTPFieldPreview` -> `OTPField`) touch APIs this repo does not use. Two undeclared behaviour changes did reach our tests: - Accordion lost roving focus in 1.6.0 (mui/base-ui#4965), following the APG which no longer recommends it (w3c/aria-practices#3434). Arrow keys no longer move focus between triggers; Tab does. The test now covers both. - 1.7.0 appends an invisible Word Joiner (U+2060) to Combobox/Autocomplete empty state text for ~200ms so Safari VoiceOver announces the polite live region. Exact-string matching broke on the marker; the assertion now matches loosely. Neither is a defect in this repo — both are upstream corrections our tests were pinning to the old behaviour. Verified: 481 tests pass, 17/17 build tasks including docs prerender, all size budgets green (aggregate 291.27 -> 295.71 kB), format and lint clean. The externalization from #305 still holds — no base-ui bundled in any dist. BREAKING CHANGE: the @base-ui/react peer range moves from ^1.2.0 to ^1.7.0. Consumers on 1.2.x-1.6.x must upgrade. Accordion triggers are no longer a roving focus group — arrow keys no longer move focus between them, per current APG guidance. Closes #303
* Update the public sidebar baseline for the centered GitHub button PR #1758 (v2142) centered the OAuth buttons so the local password form appears below them without moving them, and updated the MCP consent snapshot. The public legal route sidebar snapshot still showed the left-aligned button, so main CI failed on it with a 0.04 pixel ratio. The new Linux baseline matches the image the main CI runner rendered pixel for pixel. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Move between landing FAQ questions with Tab PR #1755 (v2139) updated @base-ui/react from 1.4.1 to 1.9.0. Base UI 1.6.0 removed arrow-key focus movement between accordion triggers, following the current APG accordion pattern (mui/base-ui#4965), so ArrowDown no longer moves focus to the next question. Each trigger stays in the tab order, so the test now presses Tab. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Wait for the trailing-newline diff fixture before counting The test counted the fixture URL once right after networkidle, with no wait. The client-only visual fixture route shows its pending screen first, and TanStack Router keeps a shown pending screen for its 500 ms defaultPendingMinMs, so the fixture mounts after networkidle and the count was 0. With pendingMinMs 0 the fixture mounted before networkidle. The test now waits for the URL text to be visible, like the test above it. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
The Accordion APG pattern no longer recommends roving focus, as documented in w3c/aria-practices#3434.
This PR proposes removing roving focus from Accordion to align with the latest APG guidance.