Skip to content

spec(AST-017): accessibility behavior fixes are not breaking - #7523

Merged
cixzhang merged 5 commits into
mainfrom
spec-ast017-accessibility-fixes
Oct 15, 2026
Merged

cixzhang merged 5 commits into
mainfrom
spec-ast017-accessibility-fixes

Conversation

@cixzhang

@cixzhang cixzhang commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

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:
    • FR3 puts documented interaction and accessibility behavior inside the compatibility promise.
    • FR5 says a proposal that intentionally replaces the documented contract is not a fix.
    • FR32–FR34 classify a correction with a released victim as [breaking], held for a planned minor or shipped behind an opt-in in a patch.
    • Together these send every accessibility conformance fix that changes documented behavior to the next minor.
  • 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.
  • Overlapping open work: spec(release): make codemod evidence tolerate promotion #7444 and spec(release): prepare successor plan at cut time #7445 also edit AST-017, in unrelated sections (codemod evidence, successor plan).
  • Prompting change: fix(DropdownMenu): a popover with a header or footer is a modal dialog, and Tab wraps #7515 replaces DropdownMenu's 0.7.0 Tab behavior to meet the APG Dialog pattern.

Decision

spec:AST-017/DEC-20, decided by @cixzhang on 2026-10-14: accessibility behavior fixes are not breaking. Her words that day:

  • 08:18 PT: "Accessibility behavior fixes are not breaking"
  • 08:20 PT: "Yeah go ahead and amend ast017"
  • 08:33 PT: "Yeah accessibility fixes are patches"
  • 08:34 PT: "Accessibility fixes should always be internal" and "I don't think it should ever change app layer code"
  • 08:34:58 PT: "Adding a new prop is not breaking either though"

The rule:

  • FR53 (new): a change whose purpose is to make a released component meet its accessibility target is [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:
    • a WCAG 2.2 Level A or AA success criterion,
    • the required parts of an APG pattern the component adopts under AST-020 FR15, or
    • a current accessibility requirement in its record.
  • No app-layer code change: existing props, types, exports, tokens and documented usage keep working unchanged.
    • It may add optional public surface, such as a new optional prop. That is not breaking, and the addition is admitted under AST-017's existing rules for public additions.
    • It never removes, renames, or narrows existing surface.
    • A change that would make apps edit code is redesigned so the component absorbs it, or it is classified under FR1.
  • Release note: the Changeset names the old and new behavior and the accessibility target, so a documented behavior change gets a release-note line.
  • How additive surface is admitted: spec and API review, and its patch-or-minor handling, are left to the existing AST-017 rules.
  • FR3, FR5, FR25, FR32, FR33 point to FR53. FR33 names the accessibility target as the authority for such a fix.
  • Review routing: the record's review-applicability block lists FR53 and DEC-20 under compatibility.
  • Verification: an FR53 row with all four cells.

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

  • Classifying accessibility corrections as breaking whenever a released caller observes the old behavior. That delays every conformance fix to a minor and keeps the harm in place meanwhile.

Claim scope and non-goals

  • Governs release classification of accessibility conformance changes only.
  • Does not decide what any component's accessible behavior is. That stays with AST-020 and the component records.
  • Does not change visual-only classification (DEC-17), emergency correction (FR35), or the patch/minor gate for other breaking changes.

Evidence and implementation relationship

No implementation. #7515 is the first change classified under this rule.

Writing rubric results

  • R1 narration: none. FR53 and DEC-20 state the rule in the present tense. The "replaces" wording describes the class of change the rule covers, not this PR's history.
  • R2 research in the record: none.
  • R3 evidence naming a change: none. The FR53 verification row names review and the component record's evidence.
  • R4 rejected alternatives over one line or outside a decision: one, one line, inside DEC-20.
  • R5 pull request or issue references remaining: none in the record.
  • R6 ruled open questions still listing options: none. Open questions stay "None."

Scope

  • This PR contains specification records only.
  • It records observable behavior and preserves equivalent internal implementations.
  • Any named internal mechanism is intentionally public, names its dependent caller/system, and explains why an equivalent implementation would not satisfy the contract.
  • Verification states the evidence layer and failure signal without prescribing CI job/workflow topology.
  • It records one intentional durable decision, not a rescue for a separable tagalong.
  • The canonical knowledge owner, affected current claims, and overlapping open work are named; any ownership collision is resolved or called out for human decision.
  • Adjacent API, visual, accessibility, composition, and implementation facts remain outside scope unless this exact decision depends on them.
  • Public text and artifacts contain no internal Meta context.

Validation

  • pnpm check:knowledge: aligned
  • Prettier: applied
  • git diff --check: clean

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.
@vercel

vercel Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Oct 15, 2026 1:38am UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Oct 14, 2026
@astracat-bot

astracat-bot Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Oct 15, 2026, 2:09 AM UTC

@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Oct 14, 2026
@github-actions

github-actions Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

View Storybook for this PR · View Sandbox for this PR

Current run: The current change has no visual or preview-producing scope. Visual checks are not applicable; preview links are not shown.


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.
@cixzhang
cixzhang force-pushed the spec-ast017-accessibility-fixes branch 2 times, most recently from ad15119 to 083cdda Compare October 14, 2026 15:44
@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 083cdda

@github-actions github-actions Bot added spec-auto-merge Auto-merge was enabled by the spec owner gate and removed needs:spec-owner-review Current knowledge records await owner approval labels Oct 14, 2026

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-applicability block 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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.
@github-actions github-actions Bot added needs:spec-owner-review Current knowledge records await owner approval and removed spec-auto-merge Auto-merge was enabled by the spec owner gate labels Oct 15, 2026
@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec c921916

@github-actions github-actions Bot added spec-auto-merge Auto-merge was enabled by the spec owner gate and removed needs:spec-owner-review Current knowledge records await owner approval labels Oct 15, 2026

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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]

@cixzhang
cixzhang merged commit afd7e55 into main Oct 15, 2026
48 checks passed
cixzhang added a commit that referenced this pull request Oct 15, 2026
…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.
@github-actions
github-actions Bot deleted the spec-ast017-accessibility-fixes branch October 15, 2026 06:22

This branch was successfully deployed

1 active deployment
Preview — c921916a Deployed Oct 15, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot. spec-auto-merge Auto-merge was enabled by the spec owner gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant