Repository navigation
docs(spec): Resizable AR1 after the Enter, aria-valuemax and aria-controls fixes - #7510
Conversation
…gone, aria-valuemax has a reported stand-in, the remaining gaps are stated with their reasons
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
PR Analysis ReportView Storybook for this PR · View Sandbox for this PR
Generated by PR Enrichment workflow | View current CI run |
…use; verification clause without the file parenthetical
|
/approve-spec 47fc7de |
There was a problem hiding this comment.
Changes requested for one wording fix: the new aria-valuemax text keys the gap on a container "sized only in pixels", but the handle reports no maximum for any unbounded region in a container that no percentage bound observes, including one with a percentage defaultSize, which neither sentence describes. Suggested wording for AR1: "the window's extent along its axis when no container is supplied, or its container's content box while a percentage bound observes it" and "an unbounded Handle in a container that no percentage bound observes carries no aria-valuemax", with the same phrase in the decision entry. Everything else in AR1 and the decision matches the shipped handle and its tests; please also refresh the description's "Gaps now" bullet to the arrow-gap wording now in the record.
[Automated review]
| it. An unbounded Handle reports a measured stand-in as `aria-valuemax`: the | ||
| window's extent along its axis, or its container's content box while a | ||
| percentage bound observes it, never below its current size or, while | ||
| collapsed, its minimum. Implementation gaps under `spec:AST-020/FR15`: the | ||
| Handle names the pane it resizes with `aria-controls` only when its caller | ||
| passes one (SideNav does); an unbounded Handle in a container sized only in | ||
| pixels carries no `aria-valuemax`, because measuring that container would add | ||
| an observer to an atomic pixel path (Performance and resources); End does not |
There was a problem hiding this comment.
The shipped hook reports a stand-in only when no container is supplied (the window's extent) or while a percentage bound observes the container, and nothing for any other unbounded region in a container. A container with a percentage defaultSize and pixel bounds therefore reports no aria-valuemax once the default resolves (a 640 px container with defaultSize: '50%' and minSize: 100 renders aria-valuenow 320 and no maximum), yet this text reads as if it reports the window's extent. Suggested:
... the window's extent along its axis when no container is supplied, or its container's content box while a percentage bound observes it, ...
... an unbounded Handle in a container that no percentage bound observes carries no `aria-valuemax`, because measuring that container would add an observer to an atomic pixel path (Performance and resources); ...
| ### 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's required parts and its keyboard (AR1), with `aria-controls`, the previous-size restore on Enter, `aria-valuemax` and End on an unbounded Handle, and the small-`minSize` reopen recorded as implementation gaps; 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`. | ||
| **Decision:** ResizeHandle already acts as one composite control with the splitter's role, value properties, and keyboard, so it adopts the pattern's required parts and its keyboard (AR1), with `aria-controls` the caller does not pass, `aria-valuemax` on an unbounded Handle in a pixel-only container, End on an unbounded Handle, and the plain-arrow reopen of a collapsed pane recorded as implementation gaps; 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.
Same correction here, so the decision's gap list matches AR1: "aria-valuemax on an unbounded Handle in a container no percentage bound observes".
…and unobserved-container cases exactly
|
/approve-spec 023471b |
There was a problem hiding this comment.
This record update looks good: AR1 and the window-splitter decision now match the shipped ResizeHandle, including the corrected aria-valuemax wording, every test the verification map cites exists and passes, and the record validates. Nothing else is required; optionally, add packages/core/src/SideNav/SideNav.test.tsx to the record's verified_by list now that the verification map cites it, and in a later edit align the Accessibility contract's opening sentence with the measured aria-valuemax stand-in.
[Automated review]
## What changes for users A keyboard user on a collapsed `ResizeHandle` pane presses the arrow that grows it and the pane opens one step above its minimum — the value the separator announced while collapsed (100 → 110), or at its `collapsedSize` when that is larger — where one bare 10 px step used to stay below the 40 px collapse threshold and change nothing (APG Window Splitter: the arrow moves the separator from where it is). The arrow that shrinks it leaves it collapsed. Enter and double-click still restore the previous size. ## Authority Path (a): `spec:AST-020` FR15 (current) plus the owner's 2026-10-13 adopt-and-patch approval for ResizeHandle's APG Window Splitter adoption; the maintainers' ruling (a) on 2026-10-13: the grow arrow opens a collapsed pane one step above its minimum regardless of `collapsedSize`; the shrink arrow stays a no-op; Enter keeps restore-previous-size. `component:Resizable` AR1 recorded the gap in #7510. ## Shape - `ResizeHandle.tsx`: the four arrow keys share one branch; on a collapsed pane only the grow direction (after `isReversed` and RTL) acts: `_onResizeStart(); _onResizeMove(Math.max(_minSizePx + step, _collapsedSize)); _onResizeEnd()`, which uncollapses the region and lands at min + step (or the threshold when that is larger) for hook-built and hand-built regions alike. Open panes step as before. - Tests (red on `main`): "a grow arrow opens a collapsed pane one step above its minimum; the shrink arrow leaves it collapsed", "a grow arrow opens a collapsed pane at its collapsedSize when the minimum sits below it", "a grow arrow opens a collapsed pane in the reversed layout and under RTL too", "in a reversed layout, ArrowLeft opens a collapsed pane and ArrowRight leaves it collapsed", "under RTL, ArrowLeft opens a collapsed pane and ArrowRight leaves it collapsed", "a grow arrow opens a hand-built collapsed region one step above its minimum". Resizable + SideNav: 367/367. - Changeset (patch). ## Record Per the fix-PR rule, `component:Resizable` AR1 states the behaviour ("…and the arrow that grows a collapsed pane opens it one step above its minimum, or at its `collapsedSize` when that is larger (the shrinking arrow leaves it collapsed)"), the gap sentence and the decision drop "a plain arrow cannot reopen a collapsed pane…", the pending-contract clause drops the collapsed-pane arrow gap, and the AR1 verification row cites the three new titles. ## Order Merges after #7485 and empties its `bare-start-collapsed` known-failure row (if #7485 merges first, that row is removed here instead). ## Writing rubric results R1 narration: none; AR1 and the decision stay present tense (the gap is deleted, not rephrased as history). R2 research: none in the record. R3 evidence: the verification cell cites test titles, not this pull request. R4 rejected alternatives: none added. R5 change references: none. R6 open questions: unchanged.
Record change
component:Resizable(draft) AR1 and its decision entry catch up with the three fixes now onmain— #7479 (Enter and double-click restore the previous size, and reopen below the collapse threshold), #7481 (an unbounded Handle reports a measured stand-in asaria-valuemax), #7473 (SideNav passesaria-controls) — so record and code say the same thing.collapsedSize).aria-valuemax: the window's extent along its axis when no container is supplied, or its container's content box while a percentage bound observes it, never below its current size or, while collapsed, its minimum."aria-controlsonly when its caller passes one (SideNav does); an unbounded Handle in a container that no percentage bound observes carries noaria-valuemax, because measuring that container would add an observer to a region whose bounds are all in pixels (Performance and resources); End does not move an unbounded Handle; and a plain arrow cannot reopen a collapsed pane whosecollapsedSize(40 px by default) is larger than one 10 px step." The last gap is the Window Splitter binding'sbare-start-collapsedknown failure (test(a11y): Window Splitter contract and ResizeHandle binding #7485); its fix follows this record.main—ResizeHandle.test.tsx"restores the previous size, not the minimum, when Enter reopens a collapsed pane", "reopens on Enter even when the minimum size sits below the collapse threshold", "reports the window basis as aria-valuemax when no maximum is configured; End leaves an unbounded region alone", "reports the container basis as aria-valuemax while a percentage bound already observes it", "never reports aria-valuemax below aria-valuemin while collapsed in a small window", "reports no aria-valuemax for an unbounded pixel-only region in a container, which stays unobserved";SideNav.test.tsx"names the nav it resizes with aria-controls (APG window splitter)";aria-controlsleaves the pending-contract clause.Full pass against
mainEvery AR1 claim re-read against
ResizeHandle.tsx/useResizable.tsonmain: role/name/orientation/value properties,aria-valuetextwhile collapsed,aria-disabled, arrow directions and RTL mirroring, Shift step, Home/End, Enter collapse/restore (now true), the stand-in maximum (true per #7481), and each remaining gap (true:aria-controlsis caller-supplied; pixel-only-in-container reports none; End uses only a configured maximum; a plain arrow on a collapsed pane stays at the minimum — reproduced in jsdom). Existing verification titles re-checked. Frontmatter, FR1–FR6, ORD and OQ1 unchanged.Writing rubric results
R1 narration: none; AR1 and the decision stay present tense (the two fixed gaps are deleted, not rephrased as history).
R2 research: none in the record.
R3 evidence: the verification cell cites test titles and the pending contract, not pull requests.
R4 rejected alternatives: none added.
R5 change references: none.
R6 open questions: unchanged — OQ1 (Handle
directiontarget-state reflection) keeps its question.