Repository navigation
spec(a11y): Window Splitter, Grid and Alert Dialog adoptions — Resizable, DateInput, new Calendar and AlertDialog draft records - #7464
Conversation
…h scroller adopts APG Grid Both already shipped as one composite control each: Resizable AR1 (focusable separator with name, orientation, pixel value properties, arrows following the reading direction, Shift step, Home/End, Enter collapse/restore) and DateInput AR8 (role grid with gridcell days, one Tab stop, aria-selected, day/week/ month movement, Home/End, Enter/Space).
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
36e770b to
7e7a886
Compare
…and Alert Dialog; Resizable AR1 states the shipped keys New narrow draft records for two public components with none: Calendar (released contract as observed; AR1 adopts the Grid pattern: named grid, columnheaders, gridcells with aria-selected holding a day button named by the date, one roving Tab stop, day/week/month movement following the reading direction, Home/End, Enter/Space) and AlertDialog (released contract; AR1 adopts the Alert Dialog pattern: alertdialog role, aria-labelledby and aria-describedby, Cancel initial focus, Escape cancels, no outside dismiss; the inline preview is a group). AlertDialog's doc anatomy gains the Dialog surface part that carries the alert-dialog target. Resizable AR1 now says what the keys do: arrows move the divider toward the end or start of its axis, End to the maximum when one is set, Enter on a collapsible pane. DateInput AR7's component:Calendar reference now resolves.
7e7a886 to
9d27eac
Compare
…hScroller keyboard gaps named; AlertDialog FR3 states the small-screen button order
|
/approve-spec 58f3154 |
|
/approve-spec cac73dc |
PR Analysis Report📚 Storybook Preview🧪 Sandbox PreviewModified ComponentsAlertDialog (@astryxdesign/core) · View in Storybook
Calendar (@astryxdesign/core) · View in Storybook
DateInput (@astryxdesign/core) · View in Storybook
Bundle Size Summary
Accessibility AuditStatus: No accessibility violations detected. Visual Regression44 of 448 shot(s) changed. A change here is a question, not a failure: check whether the after is the
and 24 more. Generated by PR Enrichment workflow | Storybook | Sandbox | View full report |
There was a problem hiding this comment.
Approval of this PR waits on a maintainer decision: the new draft requirements in all four records cite spec:AST-020/FR15, which is not on main yet, so a maintainer needs to approve them and decide whether this PR should land only after that rule does. Separately, a few record statements don't match the shipped code or the current Dialog spec and need fixing before merge:
- AlertDialog AR1 says focus stays inside and Tab cycles per
component:Dialog/AR1–AR3, but those cover only focus entry and return, and Dialog's spec leaves Tab containment as an open question. - The AR verification rows name Window Splitter, Grid and Alert Dialog contracts in
internal/a11y-specthat don't exist yet; cite the tests that do exist and record the missing contracts as gaps. - Resizable's “adopts the pattern in full” overstates the Handle, which renders no
aria-controls, omitsaria-valuemaxwithout a maximum, and restores to the minimum size on Enter rather than the previous position. - DateInput AR8 describes one grid with one Tab stop, but each mounted month pane is its own grid with its own Tab stop.
- AlertDialog's
actionVariantdefault is'destructive'and its PR1 misses the media-query listener behind the small-screen order, and Calendar's theming map and Page-key gap note don't match where the targets and focus actually land.
[Automated review]
| - **AR1 — AlertDialog adopts the APG Alert Dialog pattern** (`spec:AST-020/FR15`): | ||
| the modal surface is `role="alertdialog"`, named by its title through | ||
| `aria-labelledby` and described by its description through `aria-describedby`; | ||
| it is modal through Dialog (focus stays inside, Tab cycles its controls, and |
There was a problem hiding this comment.
component:Dialog AR1–AR3 cover focus entry, focus return and a perceivable initial target only, and Dialog's spec keeps Tab wrapping as an open question (current authority “does not settle this containment mechanic”). Suggest dropping “focus stays inside, Tab cycles its controls,” and citing component:Dialog/AR2 for focus return.
| | Contract | Verification | Representative states | Mutation or failure expectation | Audit section | | ||
| | -------- | ------------------------------------------------------------------------------------------------------ | -------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | --------------------------------- | | ||
| | FR1–FR5 | `AlertDialog.test.tsx` and `useImperativeAlertDialog.test.tsx` | open, loading, inline, imperative | A backdrop click closing, Escape not cancelling, the action closing by itself, or the inline path claiming the role fails. | `audit:AlertDialog/behavior` | | ||
| | AR1 | Alert Dialog accessibility contract (`internal/a11y-spec`) bound to AlertDialog, in jsdom and Chromium | open modal; after Escape; after Cancel | The role, name link, description link, or Cancel initial focus is lost, or a click outside dismisses the dialog. | `audit:AlertDialog/accessibility` | |
There was a problem hiding this comment.
No Alert Dialog contract exists in internal/a11y-spec yet, and Dialog's modal-dialog binding explicitly excludes AlertDialog (Dialog.a11y.states.ts L10–11). The Window Splitter and Grid rows in the Resizable, DateInput and Calendar records have the same problem. Please cite the tests that exist, such as AlertDialog.test.tsx, and record the missing binding as a gap.
|
|
||
| ### The Handle is an APG window splitter | ||
|
|
||
| **Decision:** ResizeHandle already acts as one composite control with the splitter's role, value properties, and keyboard, so it adopts the pattern in full (AR1); the inline arrows follow the reading direction because a key that moves the divider against the way it travels on screen is a defect. Decided by `cixzhang`, `2026-10-13`. |
There was a problem hiding this comment.
APG Window Splitter also requires aria-controls referring to the primary pane and aria-valuemax, and its Enter restores the previous position. The Handle renders no aria-controls, omits aria-valuemax when no maximum is set (ResizeHandle.tsx L623–626), and Enter re-expands to the minimum size (L564–573). Suggest dropping “in full”, qualifying aria-valuemax in AR1, and naming the parts that are not adopted.
| - **AR7 — Directionality.** DateInput's own calendar and clear controls exchange logical | ||
| inline sides in RTL while preserving their labels and meanings; Calendar navigation | ||
| remains owned and verified by `component:Calendar`. | ||
| - **AR8 — The month scroller is an APG grid** (`spec:AST-020/FR15`), as one |
There was a problem hiding this comment.
The scroller itself has no role; each mounted month pane is its own role="grid" with its own tabbable day (MonthScroller.tsx L784–808, L838), and up to seven panes are mounted at once. Suggest stating this per month pane, as Calendar FR2 does; AR6 already says one reachable day per month.
| | Concept | Closed values or states | Meaning | Availability by variant/orientation/state | Default | Owner | Stability | Invalid-value behavior | | ||
| | --------------- | ----------------------- | ------------------------------------------------------------------- | ----------------------------------------- | -------- | ----------------------- | --------- | ---------------------- | | ||
| | `isInline` | `true`, `false` | Renders the content inline as a non-modal preview (`role="group"`). | Always | `false` | `component:AlertDialog` | stable | Type-rejected | | ||
| | `actionVariant` | Button variants | The action button's emphasis, destructive included. | Always | Button's | `component:Button` | stable | Button's behavior | |
There was a problem hiding this comment.
AlertDialog sets its own default here: actionVariant = 'destructive' (AlertDialog.tsx L150), while Button's default variant is 'secondary'.
|
|
||
| ### Performance and resources | ||
|
|
||
| - **PR1 — Dialog-owned resources.** AlertDialog adds no listener, observer, or |
There was a problem hiding this comment.
AlertDialog calls useMediaQuery('(max-width: 640px)') (AlertDialog.tsx L167), which subscribes a matchMedia change listener; that listener drives FR3's small-screen button order.
| "Day grid": {"target": "calendar"}, | ||
| "Selected day": {"target": "calendar-day"}, |
There was a problem hiding this comment.
calendar is applied to the Calendar root, which also contains the month header (Calendar.tsx L517), and calendar-day to every day button, with selected, today, disabled and in-range as states (L1166). Mapping them to “Day grid” and “Selected day” misplaces both; a day part, like AlertDialog's new “Dialog surface”, would describe them accurately.
| Implementation gap until its fix ships: PageUp and PageDown change the visible | ||
| month but move the focused day by a week rather than a month. |
There was a problem hiding this comment.
The shipped Page keys target the day a week away and fall back to the new grid's first enabled day when that day is not shown (Calendar.tsx L401–403, L834–836): from January 15, PageDown focuses February 1, and from March 20, PageUp focuses March 13 while February is shown.
…ate the shipped facts: Dialog focus delegation, destructive default, the one media-query listener, aria-valuemax when set, Enter reopens at the minimum, aria-controls gap, per-pane grids, the Calendar target map, and the Page-key fallback; verification rows cite the shipped suites with contracts pending
|
/approve-spec f1a9e9c |
There was a problem hiding this comment.
Changes requested: a few statements in these records don't match the shipped code or its tests, though the Window Splitter, Grid and Alert Dialog adoptions themselves are not in question. Please correct them, and land this only after the APG adoption rule (spec:AST-020 FR15) is on main, since every record cites it.
- Calendar AR1's Page-key gap note: when the week-away day isn't shown, focus goes to the first day button that isn't natively disabled, which can be an adjacent-month day (PageDown from March 20, 2026 focuses March 29 while April shows), not the month's first enabled day.
- Several verification rows name coverage the cited suites don't have: no Home/End test for Calendar or the month scroller, no Calendar Tab-stop test, no RTL keyboard test for ResizeHandle, and no backdrop-click test for AlertDialog, so narrow those rows or add the tests.
- Calendar's Tab-stop seed uses the selection only in single mode, the “two days hold a Tab stop” checks need “in one month” or “in one pane”, AlertDialog's ownership list should follow FR3's small-screen order, and the gap notes should state the gap in the present tense rather than “fixed as a spec-backed patch” or “until its fix ships”.
[Automated review]
| Implementation gap until its fix ships: PageUp and PageDown change the visible | ||
| month but target the day a week away and, when that day is not shown, focus | ||
| the month's first enabled day. |
There was a problem hiding this comment.
The fallback is the first day button in the new grid without the native disabled attribute (Calendar.tsx L813–837), and adjacent-month days carry only aria-disabled, so focus can land on a disabled previous-month day: PageDown from March 20, 2026 focuses March 29 while April shows. Suggest stating the fallback as observed rather than “the month's first enabled day”.
| | Contract | Verification | Representative states | Mutation or failure expectation | Audit section | | ||
| | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------ | | ||
| | FR1–FR5 | `Calendar.test.tsx` structure, selection, bounds, and navigation suites | single, range, two months, bounded | A missing header, a second Tab stop, a pickable disabled day, an inverted range, or a focused day scrolled out of view fails. | `audit:Calendar/behavior` | | ||
| | AR1 | `Calendar.test.tsx` (grid roles and names, roving Tab stop, month-change announcements, day names) and `useGridFocus.test.tsx` (roving tabindex, RTL mirroring, Home/End); Grid accessibility contract (`internal/a11y-spec`, pending) bound to Calendar | LTR and RTL; month boundary; selected, today, disabled days | A day loses its role, name or state, two days hold a Tab stop, or an arrow, Home/End, Page or activation key stops moving or picking. | `audit:Calendar/accessibility` | |
There was a problem hiding this comment.
Calendar.test.tsx asserts no day tabindex, and useGridFocus.test.tsx never presses Home or End, so the roving Tab stop and Home/End named here have no test yet. Suggest naming only what these suites prove and marking the rest unverified until the Grid contract binds Calendar, or adding the tests.
| | Theming anatomy | `DateInput.test.tsx`, `themingTargets.test.ts`, generated probe theme | root size/status/disabled, toggle state, shared clear target | Target class or state is missing, undocumented, or placed on the wrong element | `audit:DateInput/theming` | | ||
| | FR8; AR2 | `apps/storybook/stories/DateInput.stories.tsx`, component-scoped axe | open Calendar dialog plus closed field states | Important popup semantics stay unreachable to the browser audit | `audit:DateInput/a11y` | | ||
| | AR7 | `apps/storybook/rtl-audit/targets.json`, component RTL audit | calendar and clear controls in LTR and RTL | DateInput-owned controls fail to exchange logical inline order | `audit:DateInput/rtl` | | ||
| | AR8 | `DateInputTouch.test.tsx` calendar-surface suite (grid roles, roving Tab stop, arrow and Home/End moves across the month boundary); Grid accessibility contract (`internal/a11y-spec`, pending) bound to the month scroller | LTR and RTL; month boundary; selected day; today | A day loses its gridcell role or selection, two days hold a Tab stop, or an arrow, Home/End, Page or activation key stops moving or picking | `audit:DateInput/accessibility` | |
There was a problem hiding this comment.
DateInputTouch.test.tsx tests ArrowRight across the month boundary (L1113) and ArrowDown (L1123) but no Home/End. Also, “two days hold a Tab stop” would fail the shipped scroller, where each mounted pane holds one; “two days in one pane” matches AR8.
| | Contract | Verification | Representative states | Mutation or failure expectation | Audit section | | ||
| | ------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------- | | ||
| | FR1 | `ResizeHandle.test.tsx` plus source inspection | Default, custom, collapsed, disabled, both axes | Handle and Grab zone regressions fail focused tests; custom Grip replacement currently relies on source review. | `audit:Resizable/anatomy` | | ||
| | AR1 | `ResizeHandle.test.tsx` (separator role, value properties, arrows, Shift step, Home/End, Enter collapse) and `shippedDirections.test.ts`; Window Splitter accessibility contract (`internal/a11y-spec`, pending) bound to ResizeHandle | Inline and block axes; LTR and RTL; collapsed; disabled | The Handle loses its role, name, orientation or value properties; an arrow, Home, End or Enter stops moving the divider or moves it against the reading direction | `audit:Resizable/accessibility` | |
There was a problem hiding this comment.
ResizeHandle.test.tsx covers RTL for pointer drags only (L401); no test presses an arrow key under RTL, and shippedDirections.test.ts checks hook and handle axis pairing. The “LTR and RTL” state and the reading-direction failure need a keyboard RTL test or an unverified note.
|
|
||
| | Contract | Verification | Representative states | Mutation or failure expectation | Audit section | | ||
| | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | --------------------------------- | | ||
| | FR1–FR5 | `AlertDialog.test.tsx` and `useImperativeAlertDialog.test.tsx` | open, loading, inline, imperative | A backdrop click closing, Escape not cancelling, the action closing by itself, or the inline path claiming the role fails. | `audit:AlertDialog/behavior` | |
There was a problem hiding this comment.
No AlertDialog test clicks the backdrop, and the one backdrop test in Dialog.test.tsx (L1033) uses the default info purpose, so “a backdrop click closing” would not fail any cited suite. FR1's “focused tests” basis is source-only for that half (Dialog.tsx L516).
| when disabled; one day button holds the Tab stop — the selected day, else | ||
| today, else the first enabled day of the month. |
There was a problem hiding this comment.
The seed reads the selection only in single mode (Calendar.tsx L695–700): with a range of March 10–12 selected, March 1 holds the Tab stop. Suggest “in single mode, the selected day; else today; else the first enabled day”.
|
|
||
| **Owns** | ||
|
|
||
| - The confirmation anatomy and its order: title, description, Cancel, action. |
There was a problem hiding this comment.
FR3 and AlertDialog.tsx L244–246 put the action above Cancel on small screens, so “title, description, Cancel, action” is only the wide-screen order. Suggest citing FR3 here instead of restating the order.
| side of the Handle it sits on; Home moves to the minimum size and End to the | ||
| maximum when one is set; Enter collapses a collapsible pane and reopens it at | ||
| its minimum size. Implementation gaps under `spec:AST-020/FR15`: the Handle | ||
| does not yet name the pane it resizes with `aria-controls` (fixed as a |
There was a problem hiding this comment.
“(fixed as a spec-backed patch)” reads as already fixed, but the Handle renders no aria-controls at this revision; it also describes a change rather than the system. Suggest stating the gap in the present tense and dropping the patch reference.
…rrow verification rows to covered suites, state gaps in the present tense, and name the exact Page-key fallback and Tab-stop seed
|
/approve-spec ae21af4 |
There was a problem hiding this comment.
Changes requested: the Window Splitter, Grid and Alert Dialog adoptions have owner approval and the APG adoption rule is now on main, but two verification rows still credit tests that don't exist. Please drop these phrases or back them with tests:
- Calendar's FR1–FR5 row expects
Calendar.test.tsxto catch a second Tab stop, but no test there checks a day'stabindex(the AR1 row already lists this under the pending Grid contract). - AlertDialog's FR1–FR5 row expects its suites to catch a backdrop click closing the dialog, but neither suite clicks the backdrop (FR1 and the AR1 row already mark this as pending).
While you're there, Calendar AR1 could name the shipped Ctrl+Home/Ctrl+End (or drop “in full”) and say that the arrows skip disabled days.
[Automated review]
|
|
||
| | Contract | Verification | Representative states | Mutation or failure expectation | Audit section | | ||
| | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------ | | ||
| | FR1–FR5 | `Calendar.test.tsx` structure, selection, bounds, and navigation suites | single, range, two months, bounded | A missing header, a second Tab stop, a pickable disabled day, an inverted range, or a focused day scrolled out of view fails. | `audit:Calendar/behavior` | |
There was a problem hiding this comment.
Calendar.test.tsx never asserts a day button's tabindex or presses Tab, so “a second Tab stop” fails no cited test; the AR1 row below already puts FR2 under the pending Grid contract. Suggest dropping it from this row, or adding a test that checks one tab stop per month.
|
|
||
| | Contract | Verification | Representative states | Mutation or failure expectation | Audit section | | ||
| | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | --------------------------------- | | ||
| | FR1–FR5 | `AlertDialog.test.tsx` and `useImperativeAlertDialog.test.tsx` | open, loading, inline, imperative | A backdrop click closing, Escape not cancelling, the action closing by itself, or the inline path claiming the role fails. | `audit:AlertDialog/behavior` | |
There was a problem hiding this comment.
Neither AlertDialog.test.tsx nor useImperativeAlertDialog.test.tsx clicks the backdrop (their clicks hit Cancel, Delete, Open and Close), so “A backdrop click closing” fails no cited test; FR1's basis and the AR1 row already mark it pending. Suggest dropping it from this row, or adding a backdrop-click test for the form-purpose dialog.
| ## Family and system relationships | ||
|
|
||
| - `spec:AST-020/FR15` decides which APG parts a component adopts; the day grid | ||
| adopts the Grid pattern in full because it already acts as one composite control. |
There was a problem hiding this comment.
The day grid also ships Ctrl+Home and Ctrl+End (useGridFocus.ts L528–531, L543–546), which AR1's key list does not name, so “in full” overstates the adoption and leaves those keys ungated under FR15's “names the parts it adopts”. Suggest naming them in AR1 or dropping “in full”.
…t the suites cover; Calendar AR1 states the disabled-day skip and drops 'in full'
|
/approve-spec 4f59143 |
There was a problem hiding this comment.
Changes requested: the Window Splitter, Grid and Alert Dialog records match the shipped code and cite tests that exist, apart from one unrecorded Calendar gap and one missing family link. In a two-month Calendar, a key that pages the months moves both months and leaves focus in the second grid — two ArrowDown presses from January 28 land on March 1 instead of February 11 — so Calendar AR1 should name this as a gap and FR5 should carry the two-month exception, unless the fix lands first. The AlertDialog record also declares no family although family:overlay-dismissal lists AlertDialog as a member, so it should list that family and say how AlertDialog uses it. While there, the at-a-glance check could say “in one month”, and FR4 could note that Escape, or re-picking the start when minRangeSpan is above 1, cancels an in-progress range.
[Automated review]
| Implementation gaps: PageUp and PageDown change the visible month but target | ||
| the day a week away and, when that day is not shown, focus the first day | ||
| button in the grid that is not natively disabled, which can be an | ||
| adjacent-month day; and the arrow keys can focus a borrowed adjacent-month | ||
| day that is `aria-disabled`, because cell focusability checks only native | ||
| `disabled`. |
There was a problem hiding this comment.
One more shipped gap belongs here: in a two-month view, a key that pages the months (an arrow off either grid's edge, or PageUp/PageDown) moves both months and leaves focus in the second grid — on the target only when that grid shows it, otherwise on its first enabled day. With default props, two ArrowDown presses from Jan 28 end on Mar 1 (months now Feb–Mar) instead of Feb 11; with hasOutsideDays={false}, ArrowRight from Jan 31 ends on Mar 1. Every MonthGrid receives the same pendingFocus (Calendar.tsx L568–597) and each grid's effect focuses its own match or its first enabled button (L814–840), so the last grid wins. Suggest naming it here and adding the exception to FR5, unless the Calendar keyboard patch fixes it first.
| scripts/check-knowledge.mjs, | ||
| ] | ||
| modules: [] | ||
| families: [] |
There was a problem hiding this comment.
family:overlay-dismissal (current) lists component:AlertDialog among its members, and AlertDialog's Escape goes through that shared stack via Dialog. Suggest families: [family:overlay-dismissal] plus one line under Family and system relationships, as Dialog's and DateInput's records have.
| | End-user impact | A keyboard or screen-reader user meets a named month grid, moves through it by day, week, and month, and hears each day's name, selection, today marker, and disabled state. | | ||
| | Builder impact | None. | | ||
| | Compatibility/readiness | Released behavior as observed; this draft records it and adopts the APG Grid pattern for the day grid (AR1) under `spec:AST-020/FR15`. | | ||
| | Review checks | Reject a day grid without `role="grid"` or a name, two days holding a Tab stop, an arrow key that stops following the reading direction, or a selection or today state carried only by colour. | |
There was a problem hiding this comment.
With two months there is one Tab stop per month (the two-months state below), so “two days holding a Tab stop” would reject shipped behaviour; “two days in one month holding a Tab stop” matches the AR1 verification row.
Calendar: FR5 names the two-month fallback (AR1) and AR1's gap list gains it; FR4 states Escape / repeated-start clearing; the At-a-glance reject list says two days in one month; FR1–FR5 and AR1 verification cells cite test titles verbatim and the failure column claims only what those suites fail on. DateInput AR8 cites the touch calendar-surface titles, including the per-pane Tab stop. Resizable AR1 cites the ResizeHandle titles. AlertDialog joins family:overlay-dismissal with a relationships line; FR1–FR5 and AR1 cite titles verbatim.
|
/approve-spec cbef2ac |
There was a problem hiding this comment.
Changes requested: the adoptions are approved and the four records otherwise match the shipped code and cite tests that exist, but Calendar's new two-month gap understates where focus can land. After a key pages a two-month Calendar, the second month's grid takes focus on its own button for the target or on its first day button that is not natively disabled, which can be an aria-disabled borrowed day that cannot be picked (in a February–March view, ArrowDown from the borrowed 11 March lands on 29 March in the April grid), so Calendar AR1's last gap and FR5 should say that instead of “the second month's first enabled day”, or the paging fix can land first and remove the gap. While there, AR1's borrowed-day gap could add Home and End, and DateInput's AR8 verification row could list ArrowLeft and ArrowUp with the pending keys, since its suite presses only ArrowRight and ArrowDown on the month grid.
[Automated review]
| `disabled`; and in a two-month Calendar, a key that changes the visible | ||
| months can leave focus on the second month's first enabled day instead of | ||
| the target day, because each month grid falls back to its own first enabled | ||
| day. |
There was a problem hiding this comment.
In a two-month Calendar the second month's grid does take focus after a key pages the months, but not always on an enabled day: every grid gets the same pending focus and focuses its own button for the target — borrowed copies included — or else its first day button without native disabled (Calendar.tsx L813–840), and the second grid acts last. In a February–March view, ArrowDown from the borrowed 11 March lands on the borrowed, aria-disabled 29 March in the April grid, and PageDown from 23 March lands on April's borrowed copy of 30 March. Suggest: “…a key that changes the visible months moves focus into the second month's grid: to its own button for the target day when it shows one, even a borrowed aria-disabled copy, otherwise to its first day button that is not natively disabled, which can be an adjacent-month day.”
| adjacent-month day; the arrow keys can focus a borrowed adjacent-month | ||
| day that is `aria-disabled`, because cell focusability checks only native |
There was a problem hiding this comment.
Home and End reach borrowed days the same way: Home from 1 January focuses the aria-disabled 28 December, because Home and End search the row with the same native-disabled check (useGridFocus.ts L528–556, Calendar.tsx L803–805). Suggest “the arrow keys, Home and End can focus …”.
| | FR2 | Exactly one day button within each rendered month holds `tabIndex={0}`; every other day button in that month is `-1`. | shipped `useGridFocus` behavior; Grid accessibility contract (pending) | verify | | ||
| | FR3 | A disabled day (outside bounds or rejected by a constraint) stays in the grid, is exposed as disabled, and cannot be picked. | shipped source and focused tests | verify | | ||
| | FR4 | In `range` mode the first pick starts the range and the second ends it, a second pick before the start swapping the two so the end never precedes the start; `minRangeSpan`/`maxRangeSpan` bound it. Escape, or picking the start day again when `minRangeSpan` is above 1, clears an in-progress range. | shipped source and focused tests | verify | | ||
| | FR5 | Moving the focused day across a month boundary navigates the visible month so the focused day stays visible, except in a two-month Calendar, where focus can land on the second month's first enabled day instead (AR1); an arrow can also land on a borrowed adjacent-month day, which is exposed `aria-disabled` and cannot be picked. | shipped source and focused tests | verify | |
There was a problem hiding this comment.
Same correction as the AR1 gap: in a two-month Calendar focus can land on a day in the second month's grid, including a borrowed aria-disabled day that cannot be picked, not only on its first enabled day.
| | Theming anatomy | `DateInput.test.tsx`, `themingTargets.test.ts`, generated probe theme | root size/status/disabled, toggle state, shared clear target | Target class or state is missing, undocumented, or placed on the wrong element | `audit:DateInput/theming` | | ||
| | FR8; AR2 | `apps/storybook/stories/DateInput.stories.tsx`, component-scoped axe | open Calendar dialog plus closed field states | Important popup semantics stay unreachable to the browser audit | `audit:DateInput/a11y` | | ||
| | AR7 | `apps/storybook/rtl-audit/targets.json`, component RTL audit | calendar and clear controls in LTR and RTL | DateInput-owned controls fail to exchange logical inline order | `audit:DateInput/rtl` | | ||
| | AR8 | `DateInputTouch.test.tsx` calendar-surface suite ("mounts a window of months around the visible one, not the whole century" for the named grids, "moves keyboard focus by date, across the month boundary", "moves a week at a time with the vertical arrows", "leaves exactly one day per month tab-reachable", "gives a spilled date no tab stop in the pane that borrows it", "disables days outside min/max and refuses to commit them"); RTL mirroring, Home/End, Page and activation keys under the Grid accessibility contract (`internal/a11y-spec`, pending) | LTR and RTL; month boundary; selected day; today | A day loses its gridcell role or selection, two days in one pane hold a Tab stop, or an arrow, Home/End, Page or activation key stops moving or picking | `audit:DateInput/accessibility` | |
There was a problem hiding this comment.
The cited suite presses only ArrowRight (DateInputTouch.test.tsx L1113) and ArrowDown (L1123) on the month grid, so an ArrowLeft or ArrowUp regression fails nothing here. Suggest listing ArrowLeft and ArrowUp with the keys already marked pending.
… Home/End join the borrowed-day gap; DateInput AR8 lists the unpressed arrows as pending
|
/approve-spec ffb3309 |
There was a problem hiding this comment.
Changes requested: the Window Splitter, Grid and Alert Dialog records match the shipped code, including the two-month and borrowed-day gaps, apart from one Calendar statement. Calendar's Tab-stop wording (AR1, FR2, the focused-day default, and the “nothing picked” and “two months” states) should say that the selected day and today hold the stop only when they are in that month and enabled — otherwise the month's first enabled day does, and a month with no day that can take focus has none — because with min after today, or today disabled by a constraint, the stop lands elsewhere (with today 15 January and min 16 January it is on 16 January).
[Automated review]
| when disabled; one day button holds the Tab stop — the selected day in | ||
| `single` mode, else today, else the first enabled day of the month. |
There was a problem hiding this comment.
The seed takes the selected day or today only when it is in this month and enabled (Calendar.tsx L705–723): with today 15 January and min 16 January the Tab stop is on 16 January, and with Thursdays disabled and today Thursday 15 January it is on 2 January. Suggest: “…the selected day in single mode, else today, each only when it is in that month and enabled, else the first enabled day of the month.” The Focused-day default (L85) and the “single, nothing picked” state (L112) need the same qualifier.
| | ID | Candidate invariant | Basis | Draft review state | | ||
| | --- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------- | ------------------ | | ||
| | FR1 | Each rendered month is one `role="grid"` named for its month and year, with a `columnheader` per weekday and one `row` per week. | shipped source and focused tests | verify | | ||
| | FR2 | Exactly one day button within each rendered month holds `tabIndex={0}`; every other day button in that month is `-1`. | shipped `useGridFocus` behavior; Grid accessibility contract (pending) | verify | |
There was a problem hiding this comment.
A month with no day button that can take focus has no Tab stop: in a two-month view whose February lies wholly past max, no February day button is tabbable, because the roving-tabindex repair stamps nothing when no cell is focusable (useGridFocus.ts L291–298). Suggest scoping “exactly one” here and in the “two months” state (L115) to a month that has a day button that can take focus.
… by selected/today when in-month and enabled, else the first enabled day; DateInput panes likewise
|
/approve-spec 9cd5c0a |
There was a problem hiding this comment.
This looks ready to merge: the Window Splitter, Grid and Alert Dialog records match the shipped code, including Calendar's corrected Tab-stop wording and the named gaps, and every test the verification rows cite exists. The adoptions follow the APG adoption rule now on main, the owner has approved these records, and nothing further is needed.
[Automated review]
…ntrols (#7473) ## Problem A screen-reader user on SideNav's resize handle heard a separator with a name and value but no relationship to what it resizes. APG Window Splitter requires the separator to reference its primary pane with `aria-controls`; `component:Resizable` AR1 (Window Splitter adoption under `spec:AST-020` FR15, #7464) names this as the implementation gap it closes. ## Fix `ResizeHandle` already passes `aria-controls` through (`{...props}`, ResizeHandle.tsx L670; `BaseProps` carries the ARIA attributes), and SideNav is the one shipped composition in the repository that renders both a pane and a ResizeHandle (LayoutPanel documents the pairing but renders no handle; Table's column `ResizeHandle` is a different local component). SideNav now gives its `<nav>` an id — a consumer's `id` wins, otherwise `useId()` — and passes `aria-controls={navId}` to the handle. No visual or behavioural change. ## Evidence - `SideNav.test.tsx`: "names the nav it resizes with aria-controls" and "keeps a consumer's nav id and points the handle at it". Red arm: both fail with `SideNav.tsx` reverted to main; 204/204 with the fix. tsc, eslint (hook order kept), Prettier clean. ## Changeset `@astryxdesign/core` patch `[fix]`. ## Not done here Enter reopening a collapsed pane at its minimum rather than its previous size is recorded in the Resizable record as a gap only: restoring the previous size is optional in the pattern. ## Record Code-only by the maintainers' ruling: the Resizable trio (#7479 → #7481 → #7473) merges without record edits, and one Resizable record PR then deletes or narrows all three AR1 gaps together.
## What this proves `component:AlertDialog` AR1 (the Alert Dialog adoption recorded in #7464 under `spec:AST-020` FR15) now has an executable contract and a binding. A screen-reader or keyboard user who triggers a consequential action gets: a surface announced as an alert dialog, named by its title and described by its consequence message, modal, opening with focus on the least destructive action (Cancel), closable with Escape, and not dismissed by a click on the dimmed page beside it. Test-only: no runtime, docs, or Changeset. Enforcement follows `spec:AST-020` FR9: APG-required parts are `required`; which control takes initial focus (APG guidance) and the no-backdrop-dismissal rule (the record's own) are `advisory` until AR1 is current. Modal mechanics — top layer, inert page, focus entering after modal presentation and returning to the opener — are the modal-dialog contract's, proven once on Dialog, and exempted here to that owner. ## Expectations (AST-020 FR13) | Expectation | Sources | Layer | Enforcement | | --- | --- | --- | --- | | `alertdialog.role.exposed` | WCAG 4.1.2, APG Alert Dialog | accessibility-tree | required | | `alertdialog.name.exposed` | WCAG 4.1.2, APG Alert Dialog | accessibility-tree | required | | `alertdialog.description.references-message` | WCAG 1.3.1, APG Alert Dialog | dom | required | | `alertdialog.modal.exposed` | WCAG 4.1.2, APG Alert Dialog | real-browser | required | | `alertdialog.focus.least-destructive-first` | APG Dialog (Modal) | real-browser | advisory | | `alertdialog.keys.escape` | WCAG 2.1.1, APG Dialog (Modal) | real-browser | required | | `alertdialog.dismissal.click-beside-is-inert` | APG Alert Dialog | real-browser | advisory | Exemptions: `1.1.1-non-text-content` → the binding component; `1.3.1-info-and-relationships` → the binding component (remainder only); `1.3.2-meaningful-sequence` → the binding component; `1.3.5-identify-input-purpose` → not applicable; `1.4.1-use-of-color` → the binding component and theme; `1.4.3-contrast-minimum` → the binding component and theme; `1.4.11-non-text-contrast` → the binding component and theme; `2.1.1-keyboard` → the modal-dialog contract through the composed Dialog, and the button pattern (remainder only); `2.1.2-no-keyboard-trap` → the modal-dialog contract through the composed Dialog; `2.4.2-page-titled` → the page; `2.4.3-focus-order` → the modal-dialog contract through the composed Dialog (remainder only); `2.4.4-link-purpose` → not applicable; `2.4.6-headings-and-labels` → the binding component and caller content (remainder only); `2.4.7-focus-visible` → the Button binding and theme; `2.4.11-focus-not-obscured` → the binding component; `2.5.2-pointer-cancellation` → the button pattern; `2.5.3-label-in-name` → the binding component; `2.5.8-target-size` → the Button binding and theme; `3.1.1-language-of-page` → the page; `3.2.2-on-input` → the caller and composing page (remainder only); `3.2.4-consistent-identification` → the composing page; `3.3.1-error-identification` → not applicable; `3.3.2-labels-or-instructions` → not applicable; `4.1.2-name-role-value` → the binding component and the button pattern (remainder only); `4.1.3-status-messages` → the caller and the assistive-technology verification record, spec:AST-009; `apg-interaction` → the binding component's record (remainder only); `forced-colors` → the binding component and theme; `reduced-motion` → the binding component and theme; `at-facing-strings` → the caller ## Authority for the required Escape row Maintainers' ruling (2026-10-13), path (a): current `spec:AST-020` FR15 plus the owner's 2026-10-13 APG adoption approval govern. APG Alert Dialog inherits its keyboard model from Dialog (Modal), where Escape closes the dialog is a required part; AlertDialog ships it (`component:AlertDialog` FR1, verified), so `alertdialog.keys.escape` stays `required`. The focus guidance and Escape text are quoted verbatim from the Dialog (Modal) page. ## Moved and retained local tests (AST-021 FR6, FR14) Moved out of `AlertDialog.test.tsx` into the binding: "renders with alertdialog role" (→ `alertdialog.role.exposed`) and "links description via aria-describedby" (→ `alertdialog.description.references-message`). Retained: "links title via aria-labelledby" (the title link is a component contract the name row only partly covers), "renders title and description", and every behaviour test (Escape cancels, action does not close by itself, imperative API, inline path). ## Shape - `internal/a11y-spec/src/patterns/alert-dialog.ts` — `ALERT_DIALOG_PATTERN`, 7 expectations with WCAG and APG sources (APG Alert Dialog wording verified against the published pattern on 2026-10-13); every other checklist dimension exempted to a named owner. `description.references-message` uses the harness's `related('message')` + `references()`; `focus.least-destructive-first` reads `related('cancel')`. - `alert-dialog.fixtures.ts` — a native `<dialog>` an invoker opens with `showModal()`; a small script answers Escape through the `cancel` event and treats a click whose target is the dialog element as the backdrop click, like the component does (Dialog.tsx L617–626); every expectation has at least one violating twin (`ALERT_DIALOG_MUTATIONS`, 9 mutations). - `alert-dialog.jsdom.test.ts` (10 cases; only the description reference is a DOM-layer claim) and `alert-dialog.chromium.spec.ts`. - `internal/a11y-spec/src/harness.ts` + `harness/{jsdom,chromium}.ts` — `Key` gains `Escape`; new `clickBeside(subject)`: a pointer click just outside the subject's box (jsdom: unobservable, like the other real-browser methods); `check.test.ts` stub updated. - `packages/core/src/AlertDialog/__tests__/AlertDialog.a11y.{states,renders,test}.tsx` and `AlertDialog.a11y.chromium.spec.ts` — two modal states (confirm; action loading), each opened through an opener button so focus entry is the real one; the Chromium lane clicks the opener like the Dialog binding does. - `apps/storybook/stories/AlertDialogA11y.stories.tsx` — one `no-visual` story per state through `renderAlertDialogState`. - `.github/workflows/ci.yml` — "Run Alert Dialog accessibility contract" step; scope through `pr-scope-touches.sh` from the base; runs when AlertDialog, Dialog, the harness, the stories, or the contract change. `pr-scope-touches.test.mjs` treats the consumer count as a floor (same change as the other open contract PRs). - README row and index export. ## Source lines behind the binding facts `role="alertdialog"` (inline: `group`), `aria-labelledby`/`aria-describedby` (AlertDialog.tsx L216–218); Dialog `purpose="form"` → backdrop click prevented, Escape allowed (L210; Dialog.tsx L109, L398, L617–626); Cancel initial focus (`data-autofocus` handling, AlertDialog.test.tsx L374 context). ## Ownership exclusions `ALERT_DIALOG_EXCLUSIONS`: modal mechanics (MODAL_DIALOG_PATTERN through Dialog); the `isInline` preview (not an alert dialog; `AlertDialog.test.tsx`). ## Evidence - Vitest AlertDialog directory 51/51 (incl. 6 binding cases); pattern jsdom self-test 10/10; a11y-spec package tests green; tsc (core, a11y-spec, storybook), eslint, Prettier, use-client, visual-workflow-owner clean. - Real Chromium: the CI step on this PR runs the fixture self-test (conforming pass, every mutation fails) and both binding states.
…7467) ## Problem A keyboard user in a Calendar pressed PageDown: the grid showed the next month, but focus moved only seven days — often still in the old month, now off screen, or on the wrong day. `component:Calendar` AR1 (APG Grid adoption) requires PageUp/PageDown to move the focused day by a month; the record names this as an implementation gap until this fix. ## Fix `Calendar.tsx`: `navigateMonth` takes a unit. Arrow keys crossing a month edge keep their day offset (unchanged); the Page handlers pass `'months'`, so the focused day moves through `plainDateAddMonths`, which keeps the day of the month where it exists (Jan 31 → Feb 28). The month grid's `onNavigatePrevious`/`onNavigateNext` carry the unit; nothing else changes. ## Evidence - `Calendar.test.tsx`: "moves the focused day by a month with PageDown and PageUp, into the month now shown" — from Jan 31, PageDown shows February and focuses February 28; PageUp shows January and focuses January 28. Red arm: with `Calendar.tsx` reverted to main the test fails (focus stayed a week away); with the fix 189/189 Calendar tests and 314/314 DateInput tests pass. - tsc and eslint clean. ## Changeset `@astryxdesign/core` patch `[fix]`. ## Record `component:Calendar` AR1 names this gap in #7464. ## Record Per the fix-PR rule, this PR edits `component:Calendar` (now on `main`): FR5 drops the two-month exception (the per-grid pending-focus rule makes a key land on the target in whichever grid shows it); AR1's gap list drops the Page-key gap and the two-month gap and keeps only the borrowed-day gap for #7478; the AR1 verification row cites the four Page-key tests this PR adds. ## Writing rubric results R1 narration: none; FR5 and AR1 stay present tense (gap clauses deleted, not rephrased as history). R2 research: none in the record. R3 evidence: the AR1 verification cell cites test titles, not this pull request. R4 rejected alternatives: none added. R5 change references: one `#2715` appears inside a verbatim test title the verification row quotes ("caps the range highlight next to a disabled mid-range day (#2715)") — a title, not standing content; left as the test names itself. R6 open questions: unchanged.
… into their month (#7478) ## Problem A keyboard user arrowing through a Calendar could land on a borrowed adjacent-month day — shown dimmed and exposed `aria-disabled` — and then Enter or Space picked nothing. `useGridFocus`'s `isCellFocusable` read only native `disabled` (Calendar.tsx L803–804), and borrowed days are never natively disabled (a click on one navigates). `component:Calendar` FR5/AR1 (#7464) record this as an implementation gap under the Grid adoption. ## Fix `isCellFocusable` excludes `[aria-disabled="true"]` buttons. The hook already continues past non-focusable cells in the same direction and, at the grid edge, calls `onNavigateBefore/After`, so the month navigates and the pending focus lands on the real day in the month now shown — the behaviour FR5 describes. A borrowed day's click is inert (Calendar.tsx L1167 guards on `effectivelyDisabled`); pointer focus on one is still possible, which is why the Page-key fix keeps its from-a-borrowed-day clamp. ## Stacked on the Page-key fix Base branch: `fix/calendar-page-keys` (#7467), whose per-grid pending-focus rule (only the grid showing the target month acts) this fix depends on in a two-month view. New here: an arrow leaving one grid toward a day another grid already shows moves focus there **without paging** (January 28 → ArrowDown → February 4 in the second grid, view unchanged), while a target outside both grids pages and focuses the real day (February 24 → ArrowDown → March 3). Test: "in a two-month view an arrow from the first month lands on the real day, never a borrowed one" (`numberOfMonths={2}`). ## Evidence - `Calendar.test.tsx` "skips borrowed adjacent-month days and crosses into their month instead": ArrowLeft from January 1, 2026 announces December 2025 and focuses the real December 31 (not aria-disabled). Red arm: fails with `Calendar.tsx` reverted to main (focus went to the borrowed copy). - Two existing cross-month tests ("ArrowDown moves focus +7 days…", "…locale-safe") rendered a controlled Calendar whose `onFocusDateChange` was a mock, so they passed only by focusing the borrowed February copy; they now use an owner that follows the focus date and assert the real February 4. Both fail on main's Calendar with the new assertions. - Calendar + DateInput suites 509/509; tsc, eslint, Prettier clean. ## Changeset `@astryxdesign/core` patch `[fix]`. ## Record Per the fix-PR rule, this PR edits `component:Calendar` (now on `main`): FR5 says a borrowed adjacent-month day is `aria-disabled`, cannot be picked, and the keyboard skips it; AR1's remaining gap (arrows, Home and End focusing a borrowed day) is deleted — the gap list is now empty — and the verification row cites "skips borrowed adjacent-month days and crosses into their month instead" and "in a two-month view an arrow from the first month lands on the real day, never a borrowed one". Stacked on #7467, which removes the Page-key and two-month gaps. ## Writing rubric results R1 narration: none; FR5 and AR1 stay present tense. R2 research: none in the record. R3 evidence: the AR1 verification cell cites test titles, not this pull request. R4 rejected alternatives: none added. R5 change references: one `#2715` inside a verbatim quoted test title (as in #7467), left as the test names itself. R6 open questions: unchanged.
… into their month (#7511) **Re-land of #7478, which merged into a stale base** (`fix/calendar-page-keys`, #7467's branch, after GitHub had not yet retargeted it to `main`). This PR carries exactly #7478's change — its final head e8f17e4's four files on top of `main` @ 666ad2f (#7467): Changeset +7; `Calendar.spec.md` +6/−10; `Calendar.test.tsx` +141/−16; `Calendar.tsx` +8/−1. ## Problem A keyboard user arrowing through a Calendar could land on a borrowed adjacent-month day — shown dimmed and exposed `aria-disabled` — and then Enter or Space picked nothing. `useGridFocus`'s `isCellFocusable` read only native `disabled` (Calendar.tsx L803–804), and borrowed days are never natively disabled (a click on one navigates). `component:Calendar` FR5/AR1 (#7464) record this as an implementation gap under the Grid adoption. ## Fix `isCellFocusable` excludes `[aria-disabled="true"]` buttons. The hook already continues past non-focusable cells in the same direction and, at the grid edge, calls `onNavigateBefore/After`, so the month navigates and the pending focus lands on the real day in the month now shown — the behaviour FR5 describes. A borrowed day's click is inert (Calendar.tsx L1167 guards on `effectivelyDisabled`); pointer focus on one is still possible, which is why the Page-key fix keeps its from-a-borrowed-day clamp. ## Stacked on the Page-key fix Base branch: `fix/calendar-page-keys` (#7467), whose per-grid pending-focus rule (only the grid showing the target month acts) this fix depends on in a two-month view. New here: an arrow leaving one grid toward a day another grid already shows moves focus there **without paging** (January 28 → ArrowDown → February 4 in the second grid, view unchanged), while a target outside both grids pages and focuses the real day (February 24 → ArrowDown → March 3). Test: "in a two-month view an arrow from the first month lands on the real day, never a borrowed one" (`numberOfMonths={2}`). ## Evidence - `Calendar.test.tsx` "skips borrowed adjacent-month days and crosses into their month instead": ArrowLeft from January 1, 2026 announces December 2025 and focuses the real December 31 (not aria-disabled). Red arm: fails with `Calendar.tsx` reverted to main (focus went to the borrowed copy). - Two existing cross-month tests ("ArrowDown moves focus +7 days…", "…locale-safe") rendered a controlled Calendar whose `onFocusDateChange` was a mock, so they passed only by focusing the borrowed February copy; they now use an owner that follows the focus date and assert the real February 4. Both fail on main's Calendar with the new assertions. - Calendar + DateInput suites 509/509; tsc, eslint, Prettier clean. ## Changeset `@astryxdesign/core` patch `[fix]`. ## Record Per the fix-PR rule, this PR edits `component:Calendar` (now on `main`): FR5 says a borrowed adjacent-month day is `aria-disabled`, cannot be picked, and the keyboard skips it; AR1's remaining gap (arrows, Home and End focusing a borrowed day) is deleted — the gap list is now empty — and the verification row cites "skips borrowed adjacent-month days and crosses into their month instead" and "in a two-month view an arrow from the first month lands on the real day, never a borrowed one". Stacked on #7467, which removes the Page-key and two-month gaps. ## Writing rubric results R1 narration: none; FR5 and AR1 stay present tense. R2 research: none in the record. R3 evidence: the AR1 verification cell cites test titles, not this pull request. R4 rejected alternatives: none added. R5 change references: one `#2715` inside a verbatim quoted test title (as in #7467), left as the test names itself. R6 open questions: unchanged.
## What this proves `component:Resizable` AR1 (the Window Splitter adoption recorded in #7464 under `spec:AST-020` FR15) now has an executable contract and a binding. A keyboard or screen-reader user on a resize handle gets: a named separator that states its position and bounds, says which axis it lies along, names the pane it resizes, moves by a step with the arrows (the inline arrows following the reading direction under RTL, and flipping with `isReversed`), collapses and restores the pane with Enter, jumps to the bounds with Home/End, and — when disabled — is exposed `aria-disabled` and does not move (its Tab-order removal is the component's own test, outside this contract). Test-only: no runtime, docs, or Changeset. Enforcement follows `spec:AST-020` FR9: APG-required parts are `required`; Home/End (optional in APG) are `advisory` (End is compared against the `aria-valuemax` the separator exposes, or the minimum Home reached when none is exposed) until AR1 is current. ## Expectations (AST-020 FR13) | Expectation | Sources | Layer | Enforcement | | --- | --- | --- | --- | | `windowsplitter.separator.role-and-name` | WCAG 4.1.2, APG Window Splitter, APG Window Splitter | accessibility-tree | required | | `windowsplitter.separator.position-and-minimum` | WCAG 4.1.2, APG Window Splitter | dom | required | | `windowsplitter.separator.maximum` | WCAG 4.1.2, APG Window Splitter | dom | required | | `windowsplitter.separator.orientation` | WCAG 4.1.2, APG Window Splitter | dom | required | | `windowsplitter.separator.controls-pane` | WCAG 1.3.1, APG Window Splitter | dom | required | | `windowsplitter.keys.arrows-move` | WCAG 2.1.1, APG Window Splitter | real-browser | required | | `windowsplitter.keys.enter-collapses-and-restores` | WCAG 2.1.1, APG Window Splitter | real-browser | required | | `windowsplitter.keys.home-end` | WCAG 2.1.1, APG Window Splitter | real-browser | advisory | | `windowsplitter.separator.unavailable-keeps-position` | WCAG 4.1.2, APG Window Splitter | real-browser | required | Exemptions: `1.1.1-non-text-content` → the binding component; `1.3.1-info-and-relationships` → the binding component and composing page (remainder only); `1.3.2-meaningful-sequence` → the binding component and composing page; `1.3.5-identify-input-purpose` → the binding component; `1.4.1-use-of-color` → the binding component and theme; `1.4.3-contrast-minimum` → the binding component and theme; `1.4.11-non-text-contrast` → the binding component and theme; `2.1.1-keyboard` → the composing page (remainder only); `2.1.2-no-keyboard-trap` → the binding component and composing page; `2.4.2-page-titled` → the page; `2.4.3-focus-order` → the composing page; `2.4.4-link-purpose` → the binding component; `2.4.6-headings-and-labels` → the binding component and caller content (remainder only); `2.4.7-focus-visible` → the binding component and theme; `2.4.11-focus-not-obscured` → the composing page; `2.5.2-pointer-cancellation` → the binding component; `2.5.3-label-in-name` → the binding component; `2.5.8-target-size` → the binding component and theme; `3.1.1-language-of-page` → the page; `3.2.2-on-input` → the caller and composing page; `3.2.4-consistent-identification` → the composing page; `3.3.1-error-identification` → the binding component and composing page; `3.3.2-labels-or-instructions` → the binding component and composing page; `4.1.2-name-role-value` → the binding component (remainder only); `4.1.3-status-messages` → the caller and the assistive-technology verification record, spec:AST-009; `apg-interaction` → the binding component's record (remainder only); `forced-colors` → the binding component and theme; `reduced-motion` → the binding component and theme; `at-facing-strings` → the binding component and caller content ## Known failures (exact records, reconciled in both lanes) | Binding / state | Expectation | Exact failure | User impact | Authority / fix | | --- | --- | --- | --- | --- | | `ResizeHandle` / `bare-unbounded-in-container` | `windowsplitter.separator.maximum` | `the splitter exposes no aria-valuemax` | A screen-reader user on a pixel-only region inside a container with no maximum hears no maximum. | `component:Resizable` AR1's recorded gap (measuring the container would add an observer to an all-pixel region — Performance and resources); closes only with a record decision. | | `ResizeHandle` / `bare-snapped` | `windowsplitter.keys.arrows-move` | `ArrowRight (grow) left aria-valuenow at 200, not 210` | A keyboard user on a region with snap points presses an arrow and nothing happens: a 10 px step snaps back to its starting point. | `component:Resizable` AR1 (arrows move the splitter); moving to the adjacent snap point is a component decision for its own spec-backed patch. | | `ResizeHandle` / `bare-documented-usage` | `windowsplitter.separator.controls-pane` | `the splitter carries no aria-controls` | A screen-reader user on a handle rendered the documented minimal way hears a separator with no named pane. | `component:Resizable` AR1's recorded gap (the Handle names the pane it resizes with `aria-controls` only when its caller passes one; SideNav does); a component decision for its own spec-backed patch. | ## Shape - `internal/a11y-spec/src/patterns/window-splitter.ts` — `WINDOW_SPLITTER_PATTERN`, 9 expectations with WCAG and APG sources (APG Window Splitter wording verified against the published pattern on 2026-10-13); every other checklist dimension exempted to a named owner. - `window-splitter.fixtures.ts` — HTML splitter between two panes whose `<script>` implements the keyboard model; every expectation has a violating twin (`WINDOW_SPLITTER_MUTATIONS`). - `window-splitter.jsdom.test.ts` (36 cases) and `window-splitter.chromium.spec.ts`. - No harness change: `Home`/`End`/`PageUp`/`PageDown` are already on `main`. - `packages/core/src/Resizable/__tests__/ResizeHandle.a11y.{states,renders,known-failures,test}.tsx` and `ResizeHandle.a11y.chromium.spec.ts` — twelve states: bare horizontal, bare vertical (ArrowDown grows), reversed (ArrowLeft grows), RTL (ArrowLeft grows), collapsible, collapsible with `minSize` 20 below `collapsedSize` 50 (Enter reopens it since #7479), a pane that starts collapsed (`defaultIsCollapsed`; announces the minimum; the grow arrow opens it since #7512, and the collapse-and-restore row, which assumes an open pane, does not apply), unbounded (window stand-in since #7481), unbounded pixel-only with a `containerRef` — the first `useResizable` example — which reports no maximum (exact known failure backed by the record's gap), snapped (`snaps` [100, 200, 300, 400]; a 10 px arrow step snaps back, recorded as an exact known failure on the arrows row), the documented minimal usage with no `aria-controls` passed (exact known failure on the pane-relationship row, backed by the record's gap), disabled. SideNav is excluded (`sidenav-binding`): it hides its handle while collapsed, so it binds separately with states shaped for that.- `apps/storybook/stories/WindowSplitterA11y.stories.tsx` — one `no-visual` story per state through `renderResizeHandleState`. - `.github/workflows/ci.yml` — "Run Window Splitter accessibility contract" step; scope decided through `pr-scope-touches.sh` from the base; runs when Resizable, the harness, the stories, or the contract change (SideNav is not watched: it is excluded from this binding). - README row and index export. ## Source lines behind the binding facts `role="separator"`, `aria-orientation` = `vertical` for a horizontal layout (ResizeHandle.tsx L693–694), `aria-valuemax` from a configured maximum or the reported stand-in (window extent, or the container's content box while a percentage bound observes it; a pixel-only region in a container reports none), `aria-valuetext` "Collapsed" while collapsed (L698), `tabIndex` −1 and `aria-disabled` when disabled (L700), props spread accepts `aria-controls` (L730); keys: ArrowRight/Down `+step·rtl·sign`, ArrowLeft/Up the inverse (`KEYBOARD_STEP` 10 at L58, `getRTLMultiplier` L450; the shared arrow branch from L563 opens a collapsed pane on the grow arrow since #7512), Home to min, End only to a configured maximum (L606–623); Enter and double-click collapse and restore through the hook's own transitions (`toggleCollapse` L375; #7479 on `main`). The three known failures are `bare-unbounded-in-container` (no `aria-valuemax` for a pixel-only region in a container; the record's owned gap), `bare-snapped` (an arrow step snaps back; fix in flight) and `bare-documented-usage` (no `aria-controls` unless the caller passes one; the record's owned gap). ## Ownership exclusions `RESIZE_HANDLE_EXCLUSIONS`: SideNav binding (hides its handle while collapsed; binds separately); pointer drag model (pointer capture, foreign-pointer moves ignored, pointercancel/lost-capture ending, double-click collapse and restore, grab-zone geometry — proven by `ResizeHandle.test.tsx`'s jsdom pointer suites; ResizeHandle has no Escape cancel and no Chromium pointer suite); F6 pane cycling (optional, not adopted). ## Retained local tests (AST-021 FR6, FR14) `ResizeHandle.test.tsx` keeps its role, value-property and keyboard assertions. Removal blocker: `component:Resizable` is `draft` and its AR1 verification row cites these titles (including the Enter-restore and aria-valuemax tests the merged fixes added); the duplicates come out with the record pass that makes the record current, once this binding is on `main` and cited instead. ## Evidence - Vitest Resizable directory green (incl. 16 binding cases, known failures matched); pattern jsdom self-test 36/36; tsc (core, a11y-spec, storybook), eslint, Prettier, use-client, visual-workflow-owner clean. - Real Chromium: the CI step on this PR runs the fixture self-test (conforming pass, every mutation fails) and the twelve binding states, reconciling the three known failures exactly (the two Enter-restore rows were emptied when #7479 landed and the unbounded `aria-valuemax` row when #7481 landed).
Exact decision needed
Under the APG adoption rule (
spec:AST-020FR15): ResizeHandle records its adoption of APG Window Splitter; DateInput's month scroller and Calendar record their adoption of APG Grid; AlertDialog records its adoption of APG Alert Dialog. Calendar and AlertDialog get their own narrow draft records (each is its own public component — a distinct fact boundary — so the facts are not folded into DateInput or Dialog). All four are shipped behaviour, written down.User impact
None on screen or in behaviour. The records now gate what users already get: the splitter's value properties and keys; the month scroller's and Calendar's roving Tab stop, arrows, Home/End, paging and activation; the alert dialog's role, name, description, Cancel focus and non-dismissal.
Existing authority searched
component:Resizable(draft; no adoption recorded),component:DateInput(draft; AR6/AR7 — AR7 pointed at acomponent:Calendarrecord that did not exist),component:Dialog(current; does not scope AlertDialog),spec:AST-020FR15/DEC-4 (the rule) in #7458, APG Window Splitter, Grid, and Alert Dialog patterns as published. No Calendar or AlertDialog record existed.Source lines behind every behavioural claim
ResizeHandle.tsx:role="separator"L633,aria-orientation/aria-value*/aria-label/aria-disabledL634–640, Tab stop L641; arrows with RTL multiplier L529–546 (Right/Down move toward the end, Left/Up toward the start; the pane grows or shrinks by the side the Handle sits on); Shift step L528; Home L548; End only when a maximum is set L555–557; Enter only on a collapsible pane L564–566.MonthScroller.tsx:role="grid"L807,role="gridcell"L832, one tabbable day L838, ArrowLeft/Right/Up/Down/Home L641–657, month paging per the comment at L617–618.Calendar.tsx:role="grid"+aria-labelL888–889,columnheaderL913,gridcell+aria-selectedL1112–1113, daybuttonwitharia-label,aria-disabled,aria-currentL1150–1157, rovingtabIndexL1160, seed priority selected › today › first enabled L705–712, PageUp/PageDown L773–780, cross-month movement comment L349, range swapplainDateIsBefore(date, startPd)L478;useGridFocus.ts: Home/End L156–157, RTL arrow swap L452–462.AlertDialog.tsx:role={isInline ? 'group' : 'alertdialog'}L216,aria-labelledby/aria-describedbyL217–218,purpose="form"L210 (Dialog.tsx L398: prevents backdrop click, allows Escape), Canceldata-autofocusL184–188, Escape/Cancel →onOpenChange(false)L170, action →onActiononly L196 (and the doc comment L103: the dialog does not auto-close);useImperativeAlertDialog.tsx:show/hide/elementL24–30.Implementation gaps recorded (fixed as spec-backed patches)
MonthScroller.tsxL641–665 handles Left/Right/Up/Down/Home/End only, with no RTL swap) — one fix pull request.Calendar.tsxL401–403offset ?? 7, L773–780) — one fix pull request.seedTabbableIsois computed per month grid, L707, L966); AlertDialog FR3 reads Cancel then action on wider screens and the action stacked above Cancel on small screens (L240–246), Cancel keeping initial focus (L188).Second source pass (CodeBunny round 2)
component:Dialog/AR1–AR2; Tab containment follows Dialog, whose record leaves it open (Dialog.spec.md L164–166).actionVariantdefaults to'destructive'(AlertDialog.tsx L92, L150). PR1: the only listener is the small-screen media query (L167).aria-valuemaxonly when a maximum is set (ResizeHandle.tsx L623–626); Enter collapses a collapsible pane and reopens it at its minimum size (L564–571); noaria-controlson the Handle (none in Resizable/*.tsx) — recorded as an implementation gap, fixed in a follow-up patch; reopen-at-minimum recorded as a gap only (optional in APG).role="grid"named for its month, one Tab stop per pane (MonthScroller.tsx L784–808).calendar(L517), previous/next buttons →calendar-nav(L526, L550), day button →calendar-day(L1166); the doc anatomy gains "Calendar root" and "Day button" so the map names the parts that carry the targets (Changeset extended). Page-key gap: the fallback focuses the month's first enabled day when the week-away target is not shown (L401–403, L834–836).Gap tracking (kept out of the records per R1)
aria-controls→ fix(SideNav): the resize handle names the nav it resizes with aria-controls #7473 (reopen-at-minimum: recorded only)Third source pass (CodeBunny round 3)
button:not([disabled])thenbuttons[0](Calendar.tsx L819–836) → "the first day button in the grid that is not natively disabled, which can be an adjacent-month day". Tab-stop seed:mode === 'single' && value(L695–700) → "the selected day in single mode". "two days in one month" / "one pane" in the review-fail cells.Decision
Rule-derived (owner-approved rule, 2026-10-13):
component:ResizableAR1 + decision entry + verification row.component:DateInputAR8 + verification row; AR7'scomponent:Calendarreference now resolves.component:Calendar(new draft): released contract as observed (FR1–FR5, states, order), AR1 Grid adoption, anatomy map on the threecalendar*targets.component:AlertDialog(new draft): released contract as observed (FR1–FR5), AR1 Alert Dialog adoption, anatomy map;AlertDialog.doc.mjsgains the "Dialog surface" anatomy part that carries thealert-dialogtarget (the knowledge check requires every current target to map to an anatomy part).All four records are
draft; promoting the two new ones to current is a separate whole-record decision. Until then the Calendar and AlertDialog contract bindings are advisory (spec:AST-020FR9).Delta
packages/core/src/Resizable/Resizable.spec.md,packages/core/src/DateInput/DateInput.spec.md: AR rows, verification rows, Resizable decision entry.packages/core/src/Calendar/Calendar.spec.md,packages/core/src/AlertDialog/AlertDialog.spec.md: new draft records.packages/core/src/AlertDialog/AlertDialog.doc.mjs: one anatomy part.Writing rubric results
#digits,/pull/,/issues/as standing content): none.pnpm check:knowledge: clean.Full pass against
main@ d5b123d (round 5)Checked, record by record, beyond the round's findings:
spec:,family:,architecture:,module:andcomponent:reference resolves onmain:spec:AST-020/FR15(now current),spec:AST-010,spec:AST-043(+ FR1/FR3/FR5, DEC-1/DEC-2),family:input-fields(+ FR1/FR3/FR4/FR6),family:overlay-dismissal(+ FR1; AlertDialog is listed as a member at docs/families/overlay-dismissal.md L25/L102),family:layout-regions,architecture:{public-component-api/INV1, component-theming-surface/INV3, react-component-runtime, interaction-modality, layer-runtime},component:Dialog/AR1. Delegation owners (component:Button,component:Heading,component:Field,component:FieldStatus,component:Popover,component:BottomSheet) are the owner idscheck-knowledgevalidates. Added: AlertDialogfamilies: [family:overlay-dismissal]+ the relationships line (finding 2).main:useGridFocus.test.tsx"ArrowDown moves the tab stop one row down", "flips ArrowLeft/ArrowRight under RTL"; the disabled-day skip title from round 4.useImperativeAlertDialog.test.tsx"opens on show()", "hides on hide()". AR1: "renders with alertdialog role", "links title via aria-labelledby", "links description via aria-describedby", "marks cancel as the initial focus target", "keeps the initial focus target on the least destructive action", "calls onOpenChange(false) on Escape", "stacks long destructive action labels above cancel on a narrow fine-pointer screen", "reaches both buttons by Tab, cancel first", "is a modal alertdialog", "does not claim the alertdialog role".minRangeSpan> 1; L803–804 focusability; L819–836 per-grid fallback — the two-month gap; L888–892 grid role/name/multiselectable; MonthScroller.tsx L641–665 keys, L807–833 grid/row/gridcell; ResizeHandle.tsx L532–571, L623–641; AlertDialog.tsx L92/L150 default variant, L167 media query, L210purpose="form", L216–218 role and references; Dialog.tsx L617–626 backdrop click). No further claim changed.Fix tracking for the new two-month gap: #7467 already makes only the grid showing the target month act on a pending focus (its per-grid pending-focus rule), so it fixes this case and deletes the gap from AR1 when it ships, per the fix-PR rule.