Repository navigation
spec(List): a row's start and end content animate with a handle (FR12, D40) - #8779
Conversation
|
/approve-spec 9fd5670 |
|
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 |
There was a problem hiding this comment.
Changes requested: the slot-motion direction in List FR12 is approved for this head, but two of its sentences need correcting.
- FR12 gives every leaving start or end slot an exit, but AST-105's coverage says a closing element that sets its row's height hides at once, so name that exception in FR12 and its verification row, or amend AST-105.
- The focus fallback sends focus to "the row", which FR13 says takes no focus, so say the row takes focus programmatically for the handoff, use "focus target" as FR13 does, and add focus landing on the page body to the FR12 failures.
The FR12 Basis cell and the at-a-glance Governing rules should also cite AST-105 FR8 and the AST-103 rule that the handle renders only with the prop.
[Automated review]
| | FR10 | Under a coarse primary pointer (`spec:AST-094` FR13), every ListItem row MUST offer a hit target at least 44 px tall, through its padding or an invisible hit area, with no visual change, where its neighbors leave room: the hit area never overlaps a neighboring row's or control's target, and between close neighbors it is clamped to half the gap; row height and geometry stay as they are at every density. A fine pointer keeps today's hit target. | Owner decision, 2026-10-26: no row-height change, a 44 px touch target | Accepted contract | | ||
| | FR11 | Under a coarse primary pointer, an interactive row's press MUST follow the cell profile (`spec:AST-094` FR11): it paints the `--color-overlay-pressed` token above the row's background and below its content without adding an element, and its release fades over the press model's release duration and curve on the compositor (`spec:AST-094` FR5). At rest the row's paint and stacking are as they were. | `spec:AST-094` FR5, FR11 | Accepted contract | | ||
| | FR12 | List MUST take an `animatedLayout` handle (`spec:AST-105` FR1) and report each row inserted, removed, or moved between renders. With a handle, an inserted row enters, a removed row collapses in place, inert and hidden from assistive technology until it is gone, and a row crossing rows moving the other way rides above them on the list's surface, while the rows after a change glide to their new places (`spec:AST-105` FR3), all starting on one frame on the shared motion role (`spec:AST-105` FR4). Without a handle the list changes at once (`spec:AST-105` FR2). A row's identity is its `itemKey` (`spec:AST-103` DEC-4); a row without one changes at once. | `spec:AST-105` FR1–FR5; `spec:AST-103` DEC-4 | Accepted contract | | ||
| | FR12 | List MUST take an `animatedLayout` handle (`spec:AST-105` FR1) and report each row inserted, removed, or moved between renders. With a handle, an inserted row enters, a removed row collapses in place, inert and hidden from assistive technology until it is gone, and a row crossing rows moving the other way rides above them on the list's surface, while the rows after a change glide to their new places (`spec:AST-105` FR3), all starting on one frame on the shared motion role (`spec:AST-105` FR4). Without a handle the list changes at once (`spec:AST-105` FR2). A row's identity is its `itemKey` (`spec:AST-103` DEC-4); a row without one changes at once. With a handle, a row also reports a change to its start or end content: content that appears enters, content that leaves exits, content replaced in the same slot swaps in place (`spec:AST-105` FR4, FR8), and the row's other content glides within the row; a slot whose content changes without changing size does not animate. The reorder handle's appearance (`spec:AST-103`) is such a change. A slot control that leaves is inert and hidden from assistive technology as its exit starts; if it held focus, focus moves to the row's main target (or the row) without scrolling. | `spec:AST-105` FR1–FR5; `spec:AST-103` DEC-4 | Accepted contract | |
There was a problem hiding this comment.
Two corrections to FR12's new sentences:
- "content that leaves exits" covers every slot, but AST-105's coverage says "a closing element whose space no end margin frees (… a flex-row item that sets its row's height): it hides at once, without its exit". Item's slots are flex children of a flex row, so a slot taller than the label line (an avatar beside a one-line label) falls under that rule. Name the exception here, or amend AST-105.
- "focus moves to the row's main target (or the row)": a row with no
onClick,hreforinteractiveRefhas no other target, and FR13 says its<li>"takes none". Suggested wording: "focus moves to the row's focus target, else to the row, which takes focus programmatically for the handoff without entering the Tab order". "Focus target" also matches FR13 and AR1.
The Basis cell should also cite AST-105 FR8 and the AST-103 rule that the handle renders only with the prop (FR2).
| | FR2–FR6, FR8–FR9, AR1–AR2 | Real-browser List geometry evidence | each treatment in a Card at two paddings, a Section, an inline Dialog with and without Layout, a BottomSheet, a padded ScrollableArea scrolling vertically and in both axes, a LayoutContent with explicit padding, and standalone; header and dividers; LTR/RTL; hovered and selected rows; a swiped row under `outset` and `bleed` | Header movement, content off the expected line, paint past the host's padding edge, clipped resting paint, or a changed row box fails | `audit:List/visual` | | ||
| | FR10 | List tests of the touch hit target and real-browser hit-testing | every density; a row with a description; compact rows packed closer than 44 px; a row with an end control; a coarse and a fine pointer; a theme row padding | A coarse-pointer row whose target stays at its box where its neighbors leave room, a target that reaches a neighboring row's or control's target, a changed row box, or a changed fine-pointer target fails | `audit:List/layout` | | ||
| | FR11 | Item press-layer tests and real-browser pixel evidence | press, hold, and release; a release while the main thread is blocked; a mouse | A release that stops while script runs, an element added for the press, or paint or stacking changed at rest fails | `audit:List/visual` | | ||
| | FR12 | List update-motion tests and real-browser frame evidence | an insert, a removal, and a reorder, with and without a handle; reduced motion; a mouse; a start or end slot gaining, losing, and replacing content, and changing content at the same size; the reorder handle appearing; a focused slot control leaving | A staying row that jumps with a handle, motion without one, a collapsing removed row that takes focus, pointer input or an accessibility-tree node, a removed row left after its collapse ends, or layout or paint per frame fails Also fails: a slot change that jumps with a handle, a same-size slot change that animates, a leaving slot control that keeps focus or stays reachable, or a focus move that scrolls. | `audit:List/visual` | |
There was a problem hiding this comment.
The fallback needs one more failure here: "…or a focus move that scrolls, or focus that lands on the page body." There is also a missing period before "Also fails:".
|
/approve-spec 3ed9e62 |
|
/approve-spec 5b4e59c |
There was a problem hiding this comment.
Changes requested: the slot-motion direction in List FR12 is owner-approved for this head, and three one-line fixes remain in its text.
- FR12 makes a slot that sets the row's height hide at once but still lets the row's other content glide, and the verification row still fails that jump; AST-105's Coverage has the content after such a slot take its final place at once, so say that in FR12 and exempt the case from both "jumps" failures.
- The FR12 verification row lists its new states twice and has two "Also fails:" lists, the first ending "scrolls.."; keep one copy of the states and the longer list.
- The Basis cell cites AST-103 FR1 for "the handle renders only with
reorderable", which is AST-103 FR2.
Please also update the pull request description, which still says leaving content exits and focus goes to the row's main target.
[Automated review]
| | FR9 | The list element containing the rows MUST clip in the inline axis with `overflow-inline: clip`, never `hidden`. Under `outset` and `bleed` its inline edges MUST reach the host's padding edge, so the clip never cuts resting row paint and a swiped row paints no further than that edge. | `spec:AST-057/FR9` | Verified by `List.test.tsx` and real-browser geometry | | ||
| | FR10 | Under a coarse primary pointer (`spec:AST-094` FR13), every ListItem row MUST offer a hit target at least 44 px tall, through its padding or an invisible hit area, with no visual change, where its neighbors leave room: the hit area never overlaps a neighboring row's or control's target, and between close neighbors it is clamped to half the gap; row height and geometry stay as they are at every density. A fine pointer keeps today's hit target. | Owner decision, 2026-10-26: no row-height change, a 44 px touch target | Accepted contract | | ||
| | FR11 | Under a coarse primary pointer, an interactive row's press MUST follow the cell profile (`spec:AST-094` FR11): it paints the `--color-overlay-pressed` token above the row's background and below its content without adding an element, and its release fades over the press model's release duration and curve on the compositor (`spec:AST-094` FR5). The row's dividers stay drawn while it is pressed, in every theme. At rest the row's paint and stacking are as they were. | `spec:AST-094` FR5, FR11 | Accepted contract | | ||
| | FR12 | List MUST take an `animatedLayout` handle (`spec:AST-105` FR1) and report each row inserted, removed, or moved between renders. With a handle, an inserted row enters, a removed row collapses in place, inert and hidden from assistive technology until it is gone, and a row crossing rows moving the other way rides above them on the list's surface, while the rows after a change glide to their new places (`spec:AST-105` FR3), all starting on one frame on the shared motion role (`spec:AST-105` FR4). Without a handle the list changes at once (`spec:AST-105` FR2). A row's identity is its `itemKey` (`spec:AST-103` DEC-4); a row without one changes at once. With a handle, a row also reports a change to its start or end content: content that appears enters, content that leaves exits (a slot that sets the row's height hides at once instead, as `spec:AST-105`'s Coverage states), content replaced in the same slot swaps in place (`spec:AST-105` FR4, FR8), and the row's other content glides within the row; a slot whose content changes without changing size does not animate. The reorder handle's appearance (`spec:AST-103`) is such a change. A slot control that leaves is inert and hidden from assistive technology as its exit starts; if it held focus, focus moves to the row's focus target (or to the row, which takes focus programmatically for the handoff) without scrolling. | `spec:AST-105` FR1–FR5; `spec:AST-103` DEC-4; `spec:AST-105` FR8; `spec:AST-103` FR1 (the handle renders only with `reorderable`) | Accepted contract | |
There was a problem hiding this comment.
The new exception covers only the slot's own exit. AST-105's Coverage gives a closing flex-row item that sets its row's height both halves: it "hides at once, without its exit, and the content after it takes its final place at once". This sentence still says "the row's other content glides within the row" for that case. Suggested wording for the parenthetical: "(a slot that sets the row's height hides at once instead, and the row's other content and the rows after it take their final places at once, as spec:AST-105's Coverage states)".
In the Basis cell, "the handle renders only with reorderable" is AST-103 FR2 ("With the prop absent the collection renders no handle"), not FR1.
| | FR2–FR6, FR8–FR9, AR1–AR2 | Real-browser List geometry evidence | each treatment in a Card at two paddings, a Section, an inline Dialog with and without Layout, a BottomSheet, a padded ScrollableArea scrolling vertically and in both axes, a LayoutContent with explicit padding, and standalone; header and dividers; LTR/RTL; hovered and selected rows; a swiped row under `outset` and `bleed` | Header movement, content off the expected line, paint past the host's padding edge, clipped resting paint, or a changed row box fails | `audit:List/visual` | | ||
| | FR10 | List tests of the touch hit target and real-browser hit-testing | every density; a row with a description; compact rows packed closer than 44 px; a row with an end control; a coarse and a fine pointer; a theme row padding | A coarse-pointer row whose target stays at its box where its neighbors leave room, a target that reaches a neighboring row's or control's target, a changed row box, or a changed fine-pointer target fails | `audit:List/layout` | | ||
| | FR11 | Item press-layer tests and real-browser pixel evidence | press, hold, and release; a release while the main thread is blocked; a mouse; a pressed row between two divided rows | A release that stops while script runs, an element added for the press, a divider hidden during a press, or paint or stacking changed at rest fails | `audit:List/visual` | | ||
| | FR12 | List update-motion tests and real-browser frame evidence | an insert, a removal, and a reorder, with and without a handle; reduced motion; a mouse; a start or end slot gaining, losing, and replacing content, and changing content at the same size; the reorder handle appearing; a focused slot control leaving; a start or end slot gaining, losing, and replacing content, and changing content at the same size; the reorder handle appearing; a focused slot control leaving; a leaving slot that sets the row's height | A staying row that jumps with a handle, motion without one, a collapsing removed row that takes focus, pointer input or an accessibility-tree node, a removed row left after its collapse ends, or layout or paint per frame fails. Also fails: a slot change that jumps with a handle, a same-size slot change that animates, a leaving slot control that keeps focus or stays reachable, or a focus move that scrolls.. Also fails: a slot change that jumps with a handle, a same-size slot change that animates, a leaving slot control that keeps focus or stays reachable, a focus move that scrolls, focus that lands on the page body, or a height-setting slot that plays an exit. | `audit:List/visual` | |
There was a problem hiding this comment.
The new states and the "Also fails:" list appear twice here, and the first list ends "scrolls..". Keep one copy of the states and only the second list.
While editing, exempt a leaving slot that sets the row's height from "A staying row that jumps with a handle" and "a slot change that jumps with a handle": under AST-105's Coverage that slot and the content after it take their final places at once.
|
/approve-spec cba267a |
There was a problem hiding this comment.
Recommending approval: the List FR12 slot-motion text is approved by an engineering owner for this head and agrees with the animated-layout, reordering and focus-destination specs it builds on, and the corrections asked for on earlier revisions (the height-setting slot, the repeated verification text and the AST-103 citation) are all in. Two optional touch-ups: the description's User impact paragraph still says focus goes to "the row's main target" and that every leaving slot exits, and the record's ownership lines and Animated layout concept could name slot motion beside rows. For the implementation, note that a row currently paints its focus outline only for a focused descendant, so the row needs its own focus ring when it takes focus for the handoff.
[Automated review]
Decided (Cindy, 2026-10-27 19:54, D40: "D40 OK").
User impact
In a list with an
animatedLayouthandle, a row's start or end content no longer pops in or out. An icon, a badge or the reorder handle that appears enters, one that leaves exits, a replaced one swaps in place, and the rest of the row glides. A focused control that leaves hands focus to the row's main target without scrolling, so keyboard and screen-reader users aren't stranded.Change:
component:ListFR12spec:AST-105FR4, FR8). The row's other content glides. A slot that sets the row's height hides at once, and the content after it takes its final place at once (AST-105 Coverage). A same-size change does not animate. The reorder handle's appearance (spec:AST-103FR2) counts.Writing rubric results