Skip to content

docs(spec): Resizable AR1 after the Enter, aria-valuemax and aria-controls fixes - #7510

Merged
cixzhang merged 4 commits into
mainfrom
spec/resizable-gaps-after-fixes
Oct 14, 2026
Merged

cixzhang merged 4 commits into
mainfrom
spec/resizable-gaps-after-fixes

Conversation

@cixzhang

@cixzhang cixzhang commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Record change

component:Resizable (draft) AR1 and its decision entry catch up with the three fixes now on main — #7479 (Enter and double-click restore the previous size, and reopen below the collapse threshold), #7481 (an unbounded Handle reports a measured stand-in as aria-valuemax), #7473 (SideNav passes aria-controls) — so record and code say the same thing.

  • Deleted: the two Enter gaps (reopen at the minimum; no reopen below collapsedSize).
  • Added before the gaps: "An unbounded Handle reports a measured stand-in as 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."
  • Gaps now: "the Handle names the pane it resizes with aria-controls only when its caller passes one (SideNav does); an unbounded Handle in a container that no percentage bound observes carries no aria-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 whose collapsedSize (40 px by default) is larger than one 10 px step." The last gap is the Window Splitter binding's bare-start-collapsed known failure (test(a11y): Window Splitter contract and ResizeHandle binding #7485); its fix follows this record.
  • DEC: the gap list matches.
  • AR1 verification row: adds the fix tests, all verified on 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-controls leaves the pending-contract clause.

Full pass against main

Every AR1 claim re-read against ResizeHandle.tsx/useResizable.ts on main: role/name/orientation/value properties, aria-valuetext while 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-controls is 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 direction target-state reflection) keeps its question.

…gone, aria-valuemax has a reported stand-in, the remaining gaps are stated with their reasons
@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 14, 2026 4:05am 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 14, 2026, 4:20 AM UTC

@github-actions github-actions Bot added the spec-auto-merge Auto-merge was enabled by the spec owner gate 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

@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 47fc7de

@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 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]

Comment on lines +165 to +172
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

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.

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`.

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.

Same correction here, so the decision's gap list matches AR1: "aria-valuemax on an unbounded Handle in a container no percentage bound observes".

@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 023471b

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

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]

@cixzhang
cixzhang merged commit 271692f into main Oct 14, 2026
48 checks passed
cixzhang added a commit that referenced this pull request Oct 14, 2026
## 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.
@github-actions
github-actions Bot deleted the spec/resizable-gaps-after-fixes branch October 14, 2026 06:22

This branch was successfully deployed

1 active deployment
Preview — 023471b0 Deployed Oct 14, 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