Repository navigation
spec(AST-017): accessibility behavior fixes are not breaking - #7523
Conversation
A change made so a released component conforms to its accessibility target (a WCAG 2.2 A/AA criterion, the required parts of an APG pattern it adopts under AST-020 FR15, or a current accessibility requirement in its record) is [fix] and patch-eligible even when it replaces documented roles, names, states, focus or keyboard behavior. Parts that remove a public surface, narrow inputs, change data or machine output, or need a caller to edit source still follow FR1. Adds FR52 and DEC-19; FR3, FR5, FR32 and FR33 point to FR52.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
PR Analysis ReportView Storybook for this PR · View Sandbox for this PR
Generated by PR Enrichment workflow | View current CI run |
… to FR53 and DEC-21 Per the owner's rulings: an accessibility behavior fix requires no app-layer code change. Existing props, types, exports, tokens and documented usage keep working; it may add optional surface but never removes, renames or narrows any. It ships as a patch [fix] with a release-note line when documented behavior changes; a change that would make apps edit code is redesigned or classified under FR1. DEC-21's boundary sentence is the public surface. The verification row has all four cells. Renumbered FR52 to FR53 and DEC-19 to DEC-21 so the IDs collide with no open AST-017 change (FR52 and DEC-19 are claimed elsewhere, and DEC-19 twice).
…rification row Takes DEC-20 (no open AST-017 change claims it). DEC-20's boundary sentence now restates FR53 only: no app-layer code change, optional surface may be added, nothing removed, renamed or narrowed, and a change that would make apps edit code is redesigned or classified as any other change. The FR53 verification row's states and failure mirror that text.
…r public additions An accessibility fix may add optional public surface, and that addition is admitted under AST-017's existing rules for public additions; FR53 does not admit a new prop on its own.
ad15119 to
083cdda
Compare
|
/approve-spec 083cdda |
There was a problem hiding this comment.
Changes requested: FR53 and DEC-20 are clear and carry the owner's approval on this head, but two one-line edits in docs/specs/AST-017/spec.md are needed before the record agrees with itself.
- FR25 still allows a patch to change accessibility semantics only in four ways, none of which covers an FR53 fix, so it needs the same pointer you added to FR3, FR5, FR32 and FR33.
- The record's
review-applicabilityblock routes FR3, FR5, FR32 and FR33 but not FR53 or DEC-20, so a component review that follows those pointers never loads the new rule.
A new commit will need a fresh spec approval for the new head.
[Automated review]
| until the declaration is strictly above stable. If main already carries a newer | ||
| owner plan, FR50 preserves it and no duplicate bump is required. The plan remains | ||
| malleable under FR46 until the next cut. | ||
| - **FR53 — Accessibility behavior fixes are not breaking.** A change whose purpose is |
There was a problem hiding this comment.
FR53 needs the same pointer in FR25, which this change leaves untouched.
FR25 still reads: "Outside a declared minor, changes to … accessibility semantics … MUST be additive, implementation-equivalent, a nonbreaking default change under FR3, or a victim-free contract restoration under FR5". An FR53 fix is none of those — it is not additive or equivalent, FR3's nonbreaking case requires accessibility semantics to keep working, and FR53 exists precisely for the case with a released victim. As it stands the record admits the same change under FR53 and refuses it under FR25.
Smallest fix, matching the wording you used in FR3 and FR32:
… or a victim-free contract restoration under FR5, or an accessibility behavior fix under FR53;
a breaking change lands only in a declared minor (FR31).
| per-record transition requirement and waiver, which the patch rule already expresses; | ||
| and dropping the manifest, which would lose the minor's migration inventory. | ||
|
|
||
| ### DEC-20 — Accessibility behavior fixes are not breaking |
There was a problem hiding this comment.
FR53 and DEC-20 are missing from this record's review-applicability:v1 block, so component reviews never load them.
The block routes FR3, FR5, FR32 and FR33 under the compatibility trigger, and this change makes all four defer to FR53. A reviewer who loads a routed claim therefore lands on a pointer to a rule their review did not load; the knowledge-contracts architecture record is explicit that routing "never makes the whole record, adjacent claims, drafts, or proposed-head authority govern".
Add both ids to the compatibility list, as the other open changes to this record do for their own new claims:
"FR51",
"FR53",
"DEC-20"Mapping FR53 under accessibility as well is worth considering, since that is the trigger a component accessibility fix carries.
FR25's list of what a change outside a declared minor may be now includes an accessibility behavior fix under FR53, the same pointer FR3, FR5, FR32 and FR33 carry. The review-applicability block routes FR53 and DEC-20 under compatibility beside the rules that point to them.
|
/approve-spec c921916 |
There was a problem hiding this comment.
No changes needed: FR53 and DEC-20 read clearly, the owner approved this exact head, and the two items raised on the previous revision are fixed — FR25 now admits an accessibility behavior fix under FR53, and FR53 and DEC-20 are in the record's review routing. Knowledge validation and CI pass on this head. Optionally, a one-line pointer from DEC-11 to DEC-20, like DEC-11's existing note about DEC-18, would make the carve-out explicit; any new commit would need a fresh exact-head /approve-spec.
[Automated review]
…g, and Tab wraps (#7515) ## User impact A `DropdownMenu` with a `header` or `footer` exposed `aria-haspopup="menu"` on its trigger, and its popover then held a filter field or a "Create" button that isn't a menu item. Keyboard users who Tabbed past either end found the popover closed out from under them. Now the popover is exposed as a named modal dialog with the menu inside it. The trigger exposes `aria-haspopup="dialog"`, and Tab cycles through the header, the menu and the footer until Escape or a press outside closes it. A menu without either prop is unchanged. ## What changes - **Dialog, only with regions:** the popover is `role="dialog"` with `aria-modal="true"`, named like the menu. It holds the header, the `role="menu"` element (rows only) and the footer. - **Trigger, only with regions:** `aria-haspopup="dialog"`, and `aria-controls` names the popover that holds the dialog, the same convention Popover's own trigger uses. A custom trigger's name is read once it mounts, so the dialog is never unnamed. - **Tab wraps:** Tab and Shift+Tab move through the header's controls, the menu as one stop, then the footer's controls, and wrap at either end. Hidden controls and controls under a hidden wrapper are skipped. From an open sub-menu the flyout closes and focus continues from the menu's stop. With no other stop, focus stays in the menu. - **Unchanged:** Escape closes and returns focus to the trigger; focus on open (FR6, FR12); the bottom sheet, which is already a dialog; and every menu without `header` or `footer`, which keeps `aria-haspopup="menu"` and closes on Tab. ## Current specification `component:DropdownMenu` (draft): - **DEC-10** (new): with a header or footer, the popover is a modal dialog with the menu inside, and Tab wraps. Decided by @cixzhang on 2026-10-13. - **AR5** (new): the APG Dialog (Modal) pattern's required parts, under `spec:AST-020/FR15`. - **AR4:** its carve-out now names a pointer menu with regions next to the bottom sheet. - **FR15:** the concept row, FR15 itself and its verification row state the dialog and the wrap. - **DEC-8:** its Tab sentence points to DEC-10. This fixes behavior shipped in 0.7.0 (#7344). ## Compatibility Classified `[fix]` under `spec:AST-017/FR53` and DEC-20 (#7523), owner decision by @cixzhang on 2026-10-14: accessibility behavior fixes are not breaking. - **No app-layer code change:** `DropdownMenuTriggerProps` already typed `aria-haspopup` as `'menu' | 'dialog'`; no prop, callback signature, ref target or export changes; `onOpenChange` still reports every close; documented composition (`header`, `footer`, rows as children) is unchanged. - **Documented behavior that changes (release-note line):** with a header or footer, Tab past either end now wraps inside the dialog instead of closing the menu, so `onOpenChange(false)` no longer fires on that Tab; the trigger exposes `aria-haspopup="dialog"` and `aria-controls` names the popover. - An app's own tests asserting the old Tab-close or `aria-haspopup="menu"` on a header/footer menu would see the new behavior; no runtime code needs to change. ## Writing rubric results - R1 narration: none. FR15, AR5 and DEC-10 describe the system in the present tense. - R2 research in the record: none. - R3 evidence naming a change: none. The FR15 verification row names the unit suite and the Chromium spec. - R4 rejected alternatives over one line or outside a decision: one, in one sentence inside DEC-10 (closing on Tab past either end). - R5 pull request or issue references remaining: none in the record. - R6 ruled open questions still listing options: none. ## Evidence - **Scope of the accessibility claim:** it ends at what the browser exposes (role, name, `aria-modal`, `aria-haspopup`), proved by accessibility-tree assertions in Chromium (AST-009 FR3). No NVDA or VoiceOver run was made, so nothing here claims what a screen reader announces. - `DropdownMenu.test.tsx`, header and footer suite, 26 cases: two new ones for the dialog role and trigger wiring with and without regions, and the end-of-Tab and hidden-control cases rewritten from close to wrap. - `MenuHeaderFooter.a11y.chromium.spec.ts`: the Tab walk now asserts the wrap at both ends, and a new case checks the dialog role, `aria-modal`, its name, the menu and regions inside it, and that the trigger's `aria-controls` holds the dialog. It runs in `pr-a11y`. - DropdownMenu, ContextMenu, Breadcrumbs, Popover, BottomSheet, focus-trap and doc-prop suites: 689 passed. Types and lint clean; `check:knowledge` and `check:changesets` pass. ## Scope - [x] One fix: dialog semantics for a popover with regions. - [x] Consumer docs, story text, focused tests and a changeset ship with it. - [x] Public text and artifacts contain no internal Meta context.
Exact decision needed
Whether a change that makes a released component meet its accessibility target, and in doing so replaces documented interaction or accessibility behavior, is a breaking change.
Existing authority searched
spec:AST-017:[breaking], held for a planned minor or shipped behind an opt-in in a patch.spec:AST-020: owns the accessibility targets (WCAG 2.2 A/AA in FR1; APG pattern adoption in FR15). It says nothing about release classification.spec:AST-009: owns real-AT evidence. Not about classification.Decision
spec:AST-017/DEC-20, decided by @cixzhang on 2026-10-14: accessibility behavior fixes are not breaking. Her words that day:The rule:
[fix]and patch-eligible, with no deprecation or coexistence path, even when it replaces documented roles, accessible names, states and properties, focus movement or keyboard behavior. The target is:review-applicabilityblock lists FR53 and DEC-20 under compatibility.IDs: main ends at FR51 and DEC-18. Open AST-017 changes claim FR52 (#7444) and DEC-19 (#7444 and #7445 both). This change takes FR53 and DEC-20; no open change claims either. The gap at FR52 is fine (AST-029 already has one).
Rejected alternatives
Claim scope and non-goals
Evidence and implementation relationship
No implementation. #7515 is the first change classified under this rule.
Writing rubric results
Scope
Validation
pnpm check:knowledge: alignedgit diff --check: clean