Skip to content

feat(List): the reorder handle starts its row and shows on hover or focus - #11454

Closed
ernestt wants to merge 3 commits into
feat/drag-icon-reorder-handlefrom
feat/reorder-handle-start
Closed

ernestt wants to merge 3 commits into
feat/drag-icon-reorder-handlefrom
feat/reorder-handle-start

Conversation

@ernestt

@ernestt ernestt commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Reorder stack. Review and merge in this order; each pull request is based on the one before it.

  1. feat(Icon, List): a drag icon; the reorder handle is its grip alone, with a 24px target #11445: a drag icon; the reorder handle draws it
  2. feat(List): the reorder handle starts its row and shows on hover or focus #11454: the handle starts its row and shows on hover or focus ← this pull request
  3. feat(List): createReorderable's handle option places the reorder handle and sets how it reveals #11575: createReorderable's handle option: placement and visibility
  4. feat(List): the reorder handle is its grip alone, with a 24px target #11583: the handle is its grip alone, with a 24px target
  5. fix(List): a mouse drop plays the same settle spring as a finger's drop #11600: a drop glides the rows into place with every pointer

User impact

People reorder rows in core List, Lab TransferList and Lab ListInput.

  • Placement. The handle starts the row, before its start content, beside the content it moves. Before this change it ended the row.
  • With a mouse (a fine primary pointer):
    • The handle stays hidden until its row is hovered or holds the focus. A grip on every row would compete with the rows' content.
    • It hangs before the row's text and takes no width, so labels and fields keep the alignment they have without reordering. Hidden, it keeps its tab stop.
  • With a coarse primary pointer: the handle always shows, inside the row at its start. A hanging handle would meet the screen's edge, where a swipe goes back. Reorder mode and a focused handle always show it too.
  • Numbered lists: after a list marker, the handle takes its place in the row, so it never covers the number.
  • outset and bleed: their rows reach the container's padding edge, so nothing past a row could keep a hanging handle. The handle takes its place in the row there too.
  • Room before the list: a hanging handle needs 30px past the text of a row with no inset; a padded row's own inset holds part of it. Core List pads that room before its rows and reaches into its container's padding by as much of it as the padding holds. So a clipping container never cuts a handle, and the rows move in only by the room the padding lacks. Outside a container that sets its padding, the list reaches the whole room and its rows do not move.
  • TransferList:
    • Its panels clip. So while the selected options reorder, the selected panel's heading and rows start 20px further in, and the hanging handles fit inside the panel. The labels stay under the heading.
    • Under a coarse pointer the handle sits in the row, and a row that stays put starts its label past it.
  • ListInput:
    • The handle hangs before the first field, so the fields keep their columns. ListInput takes that room from its container's padding as List does.
    • Under a coarse pointer it sits in a track before the first field. A record that stays put keeps the track empty. Column labels, the record status and the Add button line up past it.

No API change. Gestures, keys, announcements, the handle's 28px box, its focus ring and its touch hit area are unchanged. The touch queries read the primary pointer, (pointer: coarse), as main's container reveal does.

Merge with #11575. This pull request and #11575 merge back to back. Merged alone, List's handles would stay hidden with a mouse until #11575 makes them show, and under a coarse pointer a row that stays put would start its label before its neighbours'.

Visual authority

  • Existing component/module DD row reused or amended.
  • Durable component-local intent added to the optional Design decisions table by a team design owner.
  • Correction already settled by current family, design, theme, or objective accessibility authority.
  • New shared or cross-component direction settled in docs/design/ (awaiting owner approval).

Three current records change, and each needs its owner's approval:

  • design:ordered-collection-reordering (owners: ernestt, cixzhang), the rest row. Its requirement stays the same: "The handle is discoverable without overpowering item content". Its allowed variation gains: "Where no pointer is coarse, the handle may stay hidden until its item is hovered or holds the focus". Placement already "may follow the collection family". Owner question: confirm that a handle shown on row hover and on focus, and always on touch, meets "discoverable".
  • List spec (owner: cixzhang), the spec:AST-103 relationship. The handle sits "at its leading edge, before the row's start content" instead of "at its trailing edge". Where no pointer is coarse, it shows on row hover or focus and hangs before the row's text. The list pads that room and reaches into its host's padding by as much of it as the padding holds, so the FR9 clip and a clipping host keep the handles. Under a coarse pointer, after a list marker, and under outset and bleed, it sits in the row. architecture:container-padding INV3 ("A descendant escapes padding only when its component contract opts into bleed") is why this amendment carries the reach.
  • Item spec (owner: cixzhang), what Item owns. The internal leading seam, ItemLeadingContext, is now defined there: a row passes one control through it, and Item renders it before its slots, unwrapped. It replaces ItemTrailingContext, which no record defined.

Owner decisions:

  • The rest row's question above.
  • Internal API: the internal reorder entry (@astryxdesign/core/internal/reorder) gains isReorderHandle, and its ListReorderHandleProps gains isInRow. No record defines that entry; Lab's ListInput uses both.
  • Disabled rows: a disabled row hides its handle on hover and shows it at half opacity on focus. No record settles that.

spec:AST-103 (reorderable collections) FR5 still holds: the handle is the one element reordering adds to a row. Item renders it before its slots, unwrapped, through that seam.

Before and after

Real Chromium, static Storybook builds at 2x. Before is the head of #11445: the handle ends the row and always shows. After is this branch. The touch capture emulates a coarse pointer.

List, at rest: the handles stay hidden

Before (#11445) This branch
List, at rest: the handles stay hidden, before List, at rest: the handles stay hidden, this branch

List, pointer over a row: the handle hangs before the text

Before (#11445) This branch
List, pointer over a row: the handle hangs before the text, before List, pointer over a row: the handle hangs before the text, this branch

List, keyboard focus on a handle

Before (#11445) This branch
List, keyboard focus on a handle, before List, keyboard focus on a handle, this branch

List, reorder mode

Before (#11445) This branch
List, reorder mode, before List, reorder mode, this branch

List on a touch screen: the handles always show, inside the rows

Before (#11445) This branch
List on a touch screen: the handles always show, inside the rows, before List on a touch screen: the handles always show, inside the rows, this branch

List, dark mode, pointer over a row

Before (#11445) This branch
List, dark mode, pointer over a row, before List, dark mode, pointer over a row, this branch

TransferList (Default), pointer over a row

Before (#11445) This branch
TransferList (Default), pointer over a row, before TransferList (Default), pointer over a row, this branch

TransferList (Locked): a row that stays put keeps the label column

Before (#11445) This branch
TransferList (Locked): a row that stays put keeps the label column, before TransferList (Locked): a row that stays put keeps the label column, this branch

ListInput (Tag options), pointer over a record

Before (#11445) This branch
ListInput (Tag options), pointer over a record, before ListInput (Tag options), pointer over a record, this branch

ListInput (Tag options), keyboard focus on a handle

Before (#11445) This branch
ListInput (Tag options), keyboard focus on a handle, before ListInput (Tag options), keyboard focus on a handle, this branch

ListInput (Responsive itinerary), stacked layout, pointer over a record

Before (#11445) This branch
ListInput (Responsive itinerary), stacked layout, pointer over a record, before ListInput (Responsive itinerary), stacked layout, pointer over a record, this branch

ListInput (fixed-record fixture): a record that stays put keeps the field column

Before (#11445) This branch
ListInput (fixed-record fixture): a record that stays put keeps the field column, before ListInput (fixed-record fixture): a record that stays put keeps the field column, this branch

In a Card, with a mouse

The Reorder in Card story, each card's first row hovered (default theme, 2x). A padded or flush list reaches into the card's padding for its hanging handle, and moves its rows in by the room the padding lacks. Under outset and bleed, and after a list marker, the handle sits in its row. The numbered card's Sent stays put: #11575 gives it the handles' room after its marker.

padded flush
padded list in a Card, first row hovered flush list in a Card, first row hovered
outset bleed
outset list in a Card, first row hovered bleed list in a Card, first row hovered

numbered list in a Card, first row hovered

State matrix

  • Themes and modes: default theme, light and dark.
  • States: rest, pointer over a row, keyboard focus on a handle, reorder mode, touch (coarse pointer).
  • Components:
    • List (Reorderable).
    • TransferList (Default, and Locked with rows that stay put).
    • ListInput (Tag options in the row layout, Responsive itinerary in the stacked layout, and the fixed-record fixture).
  • Disabled: a disabled row does not reveal its handle on hover, because the reveal treats a disabled container as inactive. Keyboard focus reveals it, at half opacity. That matches the row's other slots, which a disabled row dims to half.
  • Edge treatments in a Card: padded, flush, outset and bleed, and a numbered list with a row that stays put (List, Reorder in Card).
  • Direction: the layout uses logical properties (inline start), so right-to-left mirrors it. These captures are left-to-right only. No right-to-left capture was taken.
  • Known gap, closed in feat(List): createReorderable's handle option places the reorder handle and sets how it reveals #11575: in core List, where the handle sits in its row (a coarse pointer, after a list marker, outset and bleed), a row that stays put does not keep the handle's room yet, so its label starts before its neighbours'. feat(List): createReorderable's handle option places the reorder handle and sets how it reveals #11575 adds that room. TransferList and ListInput keep it already.

Pre-review (fresh session)

A fresh agent session ran pnpm review:pre and the pre-review checklist on this branch. Its findings, and what changed:

  • outset and bleed lists lost 30px at their end edge. The list's reach added start padding but kept its width. These lists no longer keep the room: their rows reach the container's padding edge, so their handles sit in the rows.
  • A Card could cut the hanging handle. The list now reaches into its container's padding only as far as the padding goes, and moves its rows in by the rest. ListInput does the same for its records. A new browser test checks each edge treatment in a Card with a mouse.
  • "About 24px of room" was wrong. The handle needs 30px past a row with no inset; the docs now say the list takes the room from its container's padding.
  • A search moved TransferList's selected panel 20px. The inset now follows whether the selection is reorderable, not whether a search pauses reordering. A unit test checks it.
  • ListInput's first-field focus skipped any toggle field. It now skips only the reorder handle, through a predicate the internal reorder entry exports. A unit test adds a toggle field.
  • Stale "the handle ends the row" text in ListInput's and TransferList's docs and in comments now says it starts the row.
  • Wrong box checked, and an under-reported R7. Fixed below. The List record's "first adopter" now reads "List adopts it".
  • Missing evidence: captures in a Card for each edge treatment, and a numbered list, are added below.

Review round 2 (Joseph Farina)

  • outset and bleed lists shifted 30px: fixed in round 1. Their rows reach the host's padding edge, so the handle sits in the row there, and the list keeps its width. A browser test checks each edge treatment in a Card.
  • Merged alone, this would ship hidden List handles and a broken label column on touch: this pull request and feat(List): createReorderable's handle option places the reorder handle and sets how it reveals #11575 merge back to back, with no release between them. feat(List): createReorderable's handle option places the reorder handle and sets how it reveals #11575 restores List's and TransferList's shown handles and the room for rows that stay put.
  • The touch queries disagreed with main's reveal: rebased onto main (48a3d9de1e6), and every touch query in the stack is now (pointer: coarse), the primary pointer, as main's container reveal and AST-094 FR13 use. The docs, the List record and the design record say "where the primary pointer is fine".
  • ListInput's focus skipped toggle fields: fixed in round 1. It skips only the reorder handle, through isReorderHandle from the internal reorder entry, so ListInput never writes the private attribute's name. A unit test adds a toggle field.
  • Docs promised the hanging layout in marked lists: the changeset, the JSDoc and the docs say that after a list marker the handle sits in its row.
  • Comments: the reveal comment says a disabled row dims its label and end content; ListItem.tsx's header says each movable row starts with its handle.
  • Found running the full suite: the internal reorder entry's import test now allows isReorderHandle's module, the private attribute's owner, which loads no reorder code.

Scope

Components: List, ListItem, Item (internal leading seam), ListInput, TransferList

  • Appearance is the primary intent.
  • Behavior, API, interaction model, and unrelated layout changes were removed or split.
  • The evidence shows the changed pixels actively running, not only source or computed styles.
  • Public text and artifacts contain no internal Meta context.

Testing

  • vitest run over core List, Item, Icon and reorderable, Lab ListInput and TransferList: 23 files, 581 passed.
  • playwright test --config=playwright.interaction.config.ts --project=chromium ListReorderPointer ListReorderTouch ListReorderMode: 51 passed, on this branch's built Storybook. New in ListReorderPointer: in a Card, with a mouse, each edge treatment keeps the handle inside the card, and outset and bleed keep it in the row.
  • playwright test --project=chromium ListInputReorder TransferListReorder ReorderGripPinchZoom: 21 passed.
  • Core typecheck, Lab typecheck, strict ESLint, Prettier, check:knowledge, check:sync, check:changesets, and pnpm review:pre (0 findings).

Changed test expectations:

  • A row's buttons now read handle first. TransferList is handle, then Remove. ListInput is handle, then Remove.
  • The ListInput handle sits in the first field's cell. The row is the reveal container, and the handle carries the fade.
  • After Add, focus goes to the first field, not the handle. The focus skips only the reorder handle, so a first field that is a toggle still takes it (new unit test).
  • A search in TransferList leaves the selected panel's heading in place (new unit test).
  • The touch case "a hold elsewhere opens the menu" holds the middle of the row, clear of the handle.
  • The flush-row case checks the handle's start edge too.
  • The ListInput column case checks that the handle sits before its record's first field and never covers it. With a mouse it hangs outside the record.
  • A ListInput record that stays put keeps its first field in the column of every other record's first field.
  • The mouse case that compares the reorder-mode hint with the keyboard hint gives the story 30px of start room, for the hanging handles.
  • The disabled TransferList case checks that the handle is hidden at rest, and shown at half opacity on focus.

Writing rubric results

Records: docs/specs/components/List/List.spec.md, docs/specs/components/Item/Item.spec.md, docs/design/ordered-collection-reordering.md.

  • R1 narration: none. The changed sentences state what the system does, in the present tense.
  • R2 research: none.
  • R3 evidence: no evidence or verification cell changes.
  • R4 rejected alternatives: none added.
  • R5 change references: none.
  • R6 open questions: none added to the records. The one owner question is in this description.
  • R7 project status: the List spec's "first adopter", in the bullet this pull request rewrites, now reads "List adopts it". The record's other hit, "not implemented yet" (line 63), is outside the changed text and stays for its owner. The Item spec's added sentences: none.

@vercel

vercel Bot commented Nov 13, 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 Nov 14, 2026 12:54am UTC

Request Review

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

astracat-bot Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
❓ Needs maintainer input (for maintainers only) Nov 14, 2026, 1:06 AM UTC

@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 pull request needs a spec owner's decision before it can be approved, and it has five blocking findings to fix as well.

It changes two current records on purpose: the List spec's reorder relationship (the handle moves from the row's trailing edge to its leading edge, and shows only while the row is hovered or holds the focus, always under a coarse pointer) and the ordered-collection reordering design's rest state (the handle may stay hidden until hover or focus where no pointer is coarse). Approval needs a spec owner to accept those updates, including where the handle sits in a numbered or bulleted list and how a mouse user tells at rest which rows stay put. An engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request (a design owner may approve the design record), and the author may do so if they are an engineering owner.

Blocking findings:

  • Desktop behaviour change needs an owner decision: with a mouse, every reorderable List row's handle is now hidden until the row is hovered or focused and then fades in (ListReorderHandle.tsx:182-185, :383-384), so either gate that to touch input or cite the owner decision for it.
  • In core List, a row that isReorderable rejects now starts its label 36 px left of the movable rows' labels (ListItem.tsx:476-485), unlike TransferList and ListInput in this same change, so reserve the handle's width in ListItem for rows that stay put (TransferList's clearsHandle can then go).
  • packages/core/src/Item/ItemLeadingContext.tsx is a new internal shared module (imported by Item/Item.tsx and List/ListItem.tsx) that no current record names, so it needs an owner API decision that says why existing modules are not enough, for example by naming it in the List record's relationship bullet this change already edits.
  • ListInput's field-focus selector now skips every button[aria-pressed] in a cell (ListInput.tsx:377-378), so after Add a ToggleButton first field no longer takes focus; exclude the handle by :not([data-astryx-list-reorder]) instead.
  • The changeset and List docs say the handle "starts the row", but in a numbered or bulleted List it renders after the marker (.changeset/reorder-handle-start.md:5, List.doc.mjs:73, :186), so reword them or move the handle before the marker.

Two small notes: the comment at ListReorderHandle.tsx:155-156 says a disabled row dims each slot, but Item does not dim the start slot; and the List docs do not mention that touch screens always show the handle.

Claims and files checked
  • Claim: the handle starts the row, before its start content: verified for rows without a marker (Item.tsx:875); false in numbered and bulleted lists, where it follows the marker (blocking finding above).
  • Claim: with a mouse the handle stays hidden until its row is hovered or holds the focus, and keeps its place and tab stop: verified (ListReorderHandle.tsx:157-163, :383; browser probe: opacity 0 at rest, 1 on hover and focus, Tab reaches it).
  • Claim: always shown on coarse pointers, in reorder mode and on the focused handle: verified (containerReveal.stylex.ts:39, ListReorderHandle.tsx:160; browser probes).
  • Claim: TransferList rows that stay put keep the label column: verified (TransferList.tsx:163-164, :758; capture).
  • Claim: ListInput puts the handle in a track before the first field, keeps the track empty for records that stay put, and lines up labels, status and Add: verified (ListInput.tsx:242-271; captures).
  • Claim: no API change: verified (built public surfaces of core and the published themes differ by 0 rows).
  • Claim: gestures, keys, announcements, the 28 px box, the focus ring and the touch hit area are unchanged: verified (ListReorderHandle.tsx:101-102, handlers and hit-area style unchanged).
  • Claim: one element per row still holds, the seam is renamed and not exported: verified (Item.tsx:871-875, ListReorder.test.tsx:411-413, package exports).
  • Claim: a disabled row does not reveal its handle on hover, and focus shows it at half opacity: verified (containerReveal.stylex.ts:35, Item.tsx:473-476; probe 0.5). The part saying a disabled row dims all its other slots is inaccurate: the start slot is not dimmed (Item.tsx:482-484).
  • Claim: right-to-left mirrors through logical properties: verified (right-to-left capture).
  • Claim: the Vitest suites for List, Item, ListInput and TransferList pass with 18 files and 415 tests: verified by rerun. The Playwright, typecheck, lint and repository check results were not rerun.
  • Claim: the changed test expectations listed: verified against the diff.
  • Changeset (core patch: handle starts the row, hidden with a mouse until hover or focus, always shown on touch and in reorder mode): verified except the marker case.
  • .changeset/reorder-handle-start.md: blocking (wording).
  • docs/design/ordered-collection-reordering.md: needs spec owner approval.
  • docs/specs/components/List/List.spec.md: needs spec owner approval; marker case open.
  • packages/core/src/Item/Item.tsx: clear.
  • packages/core/src/Item/ItemLeadingContext.tsx: blocking (unnamed internal module).
  • packages/core/src/Item/ItemTrailingContext.tsx: clear (removed).
  • packages/core/src/List/List.doc.mjs: blocking (wording); touch omission note.
  • packages/core/src/List/List.tsx: clear.
  • packages/core/src/List/ListItem.tsx: blocking (rows that stay put).
  • packages/core/src/List/ListReorderHandle.tsx: blocking (desktop decision); comment note.
  • packages/core/src/List/__tests__/ListReorder.test.tsx: clear.
  • packages/core/src/List/__tests__/ListReorderMode.interaction.browser.spec.ts: clear.
  • packages/core/src/List/__tests__/ListReorderTouch.interaction.browser.spec.ts: clear.
  • packages/core/src/List/listReorderContext.ts: clear.
  • packages/lab/src/ListInput/ListInput.doc.mjs: clear.
  • packages/lab/src/ListInput/ListInput.test.tsx: clear.
  • packages/lab/src/ListInput/ListInput.tsx: blocking (focus selector).
  • packages/lab/src/ListInput/__tests__/ListInputReorder.a11y.chromium.spec.ts: clear.
  • packages/lab/src/TransferList/TransferList.doc.mjs: clear.
  • packages/lab/src/TransferList/TransferList.test.tsx: clear.
  • packages/lab/src/TransferList/TransferList.tsx: clear.
  • packages/lab/src/TransferList/__tests__/TransferListReorder.a11y.chromium.spec.ts: clear.

Automated review (maintainer link)

export const reorderRowStyle = ownRingContainerStyles.focusWithin;
export const reorderRowStyle = [
ownRingContainerStyles.focusWithin,
revealStyles.container,

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.

Desktop behaviour change needs an owner decision: with this reveal container on the row (and the handle's opacity bound to it at lines 383-384), a mouse user sees no handle until the row is hovered or focused, and it fades in. Either gate the hidden state to touch input, or cite the owner decision for it in the description.

<ItemTrailingContext value={isHandleInRow ? reorderHandle : null}>
{/* One shape whether or not the row has a handle, so the row keeps its
element when that changes. */}
<ItemLeadingContext value={reorderHandle}>

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.

A row that isReorderable rejects gets no handle and no reserved space here, so its label starts 36 px left of the movable rows' labels (List's Reorder With Pinned Rows story: Favorites and All mail at 24 px, the others at 60 px). TransferList and ListInput keep that column in this same change. Reserving the handle's width for a row that stays put (when reorder != null && !hasHandle) fixes core and lets TransferList drop clearsHandle.

import type {ReactNode} from 'react';
import {createSharedContext} from '../utils/sharedContext';

export const ItemLeadingContext = createSharedContext<ReactNode>(

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 is a new internal shared module (imported by Item/Item.tsx and List/ListItem.tsx) that no current record names, so it needs an owner API decision that says why existing modules are not enough. The component:List relationship bullet this pull request already edits could name it.

Comment thread .changeset/reorder-handle-start.md Resolved

@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 pull request needs a spec owner's decision before it can be approved, and it has nine blocking findings to fix as well.

It intentionally changes two current records: the List spec's reorder relationship, which moves the handle from the row's trailing edge to its leading edge, and the ordered-collection reordering design record's rest row, which gains a handle hidden until hover or focus. Approval needs an engineering owner to record that decision by commenting /approve-spec <full head SHA> on this pull request; the author may do so if they are an engineering owner, and a design owner may approve the design record.

Blocking findings:

  • Desktop behavior change needs an owner decision: with a mouse, every reorderable List row's handle is now invisible until the row is hovered or focused and then fades in (ListReorderHandle.tsx, the reveal style and reorderRowStyle); either keep the handle visible for a mouse or cite the owner decision for it in the description.
  • The handle now hangs 30 px before the row's text and the list reaches 30 px outside its container, so inside a Card the Card clips the hovered handle and its focus ring, and at a page edge part of it is off-screen, which also contradicts the List spec's FR2 (List.tsx reorderGutter).
  • Under edge="outset" or "bleed", reorderGutterReachingPadding shifts the list 30 px toward the start without widening it, so rows end 30 px short of the host's padding edge (List FR9) and the handle is clipped almost entirely.
  • The always-shown, in-row touch layout keys on any-pointer: coarse, but touch presentations follow a coarse primary pointer (pointer: coarse), as the handle's own touch styles and the container reveal on main do; use that query in List.tsx, ListReorderHandle.tsx, ListInput.tsx and TransferList.tsx.
  • Rows that stay put lose the label column: under a coarse pointer their labels sit 36 px left of movable rows' labels, and in a numbered or bulleted list this happens for every pointer, so core ListItem should reserve the handle's width for a row without one, as TransferList and ListInput already do.
  • ItemLeadingContext is a new internal module shared by Item and ListItem that no current record names, so it needs an owner API decision, for example in the List relationship bullet this pull request already edits.
  • ListInput's field-focus selector button:not([aria-pressed]) skips every toggle button, not only the handle, so after Add a record whose first control is a ToggleButton sends focus past it; exclude [data-astryx-list-reorder] instead.
  • The changeset and List docs say the handle starts the row and hangs before the text so the text keeps its place, but in a numbered or bulleted list it follows the marker, takes 36 px and moves every label for every pointer; say so.
  • The handle's comment and the description say a disabled row dims each of its slots to half, but Item does not dim the start slot; reword both.
Claims and files checked
  • Claim: the handle starts the row before its start content: false for numbered and bulleted lists, where it follows the marker (captures, ListItem.tsx, ListReorderHandle.tsx).
  • Claim: with a mouse the handle stays hidden until its row is hovered or focused: verified (opacity 0 at rest, 1 on hover and on focus).
  • Claim: hidden, it keeps its place and tab stop, so the text never shifts when it appears: verified for unmarked lists; in marked lists the label moves 36 px against the base.
  • Claim: leave about 24 px of room before a reorderable list: the handle box reaches 22 px past the row box at default density; the room is a new caller requirement (finding above).
  • Claim: always shown on touch screens, in reorder mode and on the focused handle: verified, but keyed on any coarse pointer (finding above).
  • Claim: TransferList rows that stay put keep the label column: verified (every label at the same x).
  • Claim: ListInput keeps an empty track so every first field lines up: verified in code and by the pull request's browser test (not rerun here).
  • Claim: no API change: verified (built public surfaces identical).
  • Claim: gestures, keys, announcements, the 28 px handle and its touch hit area are unchanged: verified in code; the focus ring is unchanged but now clipped in a Card.
  • Claim: the handle stays the one element reordering adds to a row: verified (unit test passes).
  • Claim: a disabled row dims its other slots to half: false for the start slot.
  • Claim: unit tests pass, 18 files and 415 tests: verified.
  • Claim: behavior and layout changes were removed or split: false; the hover reveal and the list gutter are part of this change.
  • Files with findings: .changeset/reorder-handle-start.md, docs/design/ordered-collection-reordering.md (owner approval), docs/specs/components/List/List.spec.md (owner approval; FR2 and FR9 left contradicting), packages/core/src/Item/ItemLeadingContext.tsx, packages/core/src/List/List.doc.mjs, packages/core/src/List/List.tsx, packages/core/src/List/ListItem.tsx, packages/core/src/List/ListReorderHandle.tsx, packages/lab/src/ListInput/ListInput.tsx, packages/lab/src/TransferList/TransferList.tsx.
  • Files clear: packages/core/src/Item/Item.tsx, packages/core/src/Item/ItemTrailingContext.tsx (removed), packages/core/src/List/listReorderContext.ts, packages/core/src/List/__tests__/ListReorder.test.tsx, packages/core/src/List/__tests__/ListReorderMode.interaction.browser.spec.ts, packages/core/src/List/__tests__/ListReorderTouch.interaction.browser.spec.ts, packages/lab/src/ListInput/ListInput.doc.mjs, packages/lab/src/ListInput/ListInput.test.tsx, packages/lab/src/ListInput/__tests__/ListInputReorder.a11y.chromium.spec.ts, packages/lab/src/TransferList/TransferList.doc.mjs, packages/lab/src/TransferList/TransferList.test.tsx, packages/lab/src/TransferList/__tests__/TransferListReorder.a11y.chromium.spec.ts.

Automated review (maintainer link)

Comment thread packages/core/src/List/List.tsx Resolved
Comment thread packages/core/src/List/List.tsx Resolved
Comment thread .changeset/reorder-handle-start.md Resolved
Comment thread packages/core/src/List/ListItem.tsx Resolved

@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 pull request needs a spec owner's decision before it can be approved, and it has nine blocking findings to fix as well.

It intentionally changes two current records: the List spec's reorder relationship, which moves the handle from the row's trailing edge to its leading edge, and the ordered-collection reordering design record's rest row, which gains a handle hidden until hover or focus. Approval needs an engineering owner to record that decision by commenting /approve-spec <full head SHA> on this pull request; the author may do so if they are an engineering owner, and a design owner may approve the design record.

Blocking findings:

  • Desktop behavior change needs an owner decision: with a mouse, every reorderable List row's handle is now invisible until the row is hovered or focused and then fades in (ListReorderHandle.tsx, the reveal style and reorderRowStyle); either keep the handle visible for a mouse or cite the owner decision for it in the description.
  • The handle now hangs 30 px before the row's text and the list reaches 30 px outside its container, so inside a Card the Card clips the handle and its focus ring and at a page edge part of it is off-screen, which also contradicts the List spec's FR2 (List.tsx reorderGutter).
  • Under edge="outset" or "bleed", reorderGutterReachingPadding shifts the list 30 px toward the start without widening it, so rows end 30 px short of the host's padding edge (List FR9) and the hovered handle is clipped almost entirely.
  • The always-shown, in-row touch layout keys on any-pointer: coarse, but touch presentations follow a coarse primary pointer (pointer: coarse), as the handle's own touch styles and the container reveal on main do; use that query in List.tsx, ListReorderHandle.tsx, ListInput.tsx and TransferList.tsx.
  • Rows that stay put lose the label column: under a coarse pointer their labels sit 36 px left of movable rows' labels, and in a numbered or bulleted list this happens for every pointer, so core ListItem should reserve the handle's width for a row without one, as TransferList and ListInput already do.
  • ItemLeadingContext is a new internal module shared by Item and ListItem that no current record names, so it needs an owner API decision, for example in the List relationship bullet this pull request already edits.
  • ListInput's field-focus selector button:not([aria-pressed]) skips every toggle button, not only the handle, so after Add a record whose first control is a ToggleButton sends focus past it; exclude [data-astryx-list-reorder] instead.
  • The changeset and List docs say the handle starts the row and hangs before the text so the text keeps its place, but in a numbered or bulleted list it follows the marker, takes 36 px and moves every movable label for every pointer; say so.
  • The handle's comment and the description say a disabled row dims each of its slots to half, but Item does not dim the start slot; reword both.

The ListItem.tsx file header still says each movable row ends with its handle, a small non-blocking fix.

Claims and files checked
  • Claim: the handle starts the row, before its start content: false for numbered and bulleted lists, where it follows the marker (captures, ListItem.tsx, ListReorderHandle.tsx).
  • Claim: with a mouse the handle stays hidden until its row is hovered or focused: verified (opacity 0 at rest, 1 on hover and on focus).
  • Claim: it hangs before the text and takes no width, so labels keep their alignment: verified for unmarked lists; in marked lists every movable label moves 36 px against the base.
  • Claim: hidden, it keeps its tab stop: verified (Tab reaches the first handle and shows it).
  • Claim: under a coarse pointer it always shows, inside the row; reorder mode and a focused handle always show it: verified, but keyed on any coarse pointer (finding above).
  • Claim: after a list marker it never covers the number: verified.
  • Claim: the list reaches 30 px toward the start and pads it back, and a clipping container should leave about 24 px: verified; the room is a new caller requirement (finding above).
  • Claim: TransferList's heading and rows start 20 px further in while ordering, and a row that stays put starts its label past the handle on touch: verified in code.
  • Claim: ListInput's handle hangs before the first field, sits in a track on touch, and a record that stays put keeps the track empty: verified in code; its browser tests were not rerun.
  • Claim: no API change: verified (built public surfaces identical).
  • Claim: gestures, keys, announcements, the 28 px box, the focus ring and the touch hit area are unchanged: verified in code; the ring is now clipped in a Card.
  • Claim: the handle stays the one element reordering adds to a row: verified (unit test passes).
  • Claim: a disabled row reveals the handle at half opacity, matching the row's other slots: false for the start slot.
  • Claim: the layout uses logical properties, so right-to-left mirrors it: verified in code.
  • Claim: unit tests pass, 18 files and 415 tests: verified.
  • Claim: behaviour and interaction-model changes were removed or split: false; the hover reveal and the list gutter are part of this change.
  • Files with findings: .changeset/reorder-handle-start.md, docs/design/ordered-collection-reordering.md (owner approval), docs/specs/components/List/List.spec.md (owner approval; FR2 and FR9 left contradicting), packages/core/src/Item/ItemLeadingContext.tsx, packages/core/src/List/List.doc.mjs, packages/core/src/List/List.tsx, packages/core/src/List/ListItem.tsx, packages/core/src/List/ListReorderHandle.tsx, packages/lab/src/ListInput/ListInput.tsx, packages/lab/src/TransferList/TransferList.tsx.
  • Files clear: packages/core/src/Item/Item.tsx, packages/core/src/Item/ItemTrailingContext.tsx (removed), packages/core/src/List/listReorderContext.ts, packages/core/src/List/__tests__/ListReorder.test.tsx, packages/core/src/List/__tests__/ListReorderMode.interaction.browser.spec.ts, packages/core/src/List/__tests__/ListReorderTouch.interaction.browser.spec.ts, packages/lab/src/ListInput/ListInput.doc.mjs, packages/lab/src/ListInput/ListInput.test.tsx, packages/lab/src/ListInput/__tests__/ListInputReorder.a11y.chromium.spec.ts, packages/lab/src/TransferList/TransferList.doc.mjs, packages/lab/src/TransferList/TransferList.test.tsx, packages/lab/src/TransferList/__tests__/TransferListReorder.a11y.chromium.spec.ts.

Automated review (maintainer link)

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

Thanks Ernest. Putting the handle at the start puts the grip beside the content it moves, and the hanging layout keeps text from jumping when the grip appears. The before and after captures across List, TransferList and ListInput, including the stacked and fixed-record cases, made this easy to follow.

I can't approve it yet. Here is why, and what I would do.

Why it can't ship yet

1. outset and bleed lists shift 30px. reorderGutterReachingPadding in List.tsx moves the list 30px further toward the start but keeps the width reachesContainerPadding sets (calc(100% + start + end)), and Astryx sizes boxes with border-box. So the list starts 30px past the host's padding edge and its rows end 30px short of the end padding edge. List FR9 requires both inline edges to reach the host's padding edge. In a host that clips and has less than 30px of padding, such as a rounded Card, the hanging handle and its focus ring are also cut.

2. On its own, this PR ships hidden List handles on desktop and a broken label column on touch, and #11575 then flips both back. In this PR's preview, the Reorder With Pinned Rows story on a phone profile puts the pinned rows' labels at 24px and the movable rows' labels at 60px. #11575 gives rows that stay put the handle's room and makes List and TransferList show their handles again (I measured every label at 60px there). Releases go out often, so merging this one alone could put both in front of people for a release.

3. The touch queries will disagree with main's reveal once rebased. This branch is 122 commits behind main. Main's shared container reveal now keys on the primary pointer, (pointer: coarse) (#11218, so a touchscreen laptop used with a mouse reveals on hover). The handle's layout here keys on (any-pointer: coarse) in List.tsx, ListReorderHandle.tsx, ListInput.tsx and TransferList.tsx. On that laptop the handle would take its in-row room but stay hidden until hover. AST-094 FR13 also ties the touch presentation to a coarse primary pointer.

4. ListInput's field-focus selector skips more than the handle. button:not([aria-pressed]) drops every toggle button, and core ToggleButton always renders aria-pressed. So after Add, a record whose first field is a ToggleButton no longer gets focus.

5. The docs promise a layout that numbered and bulleted lists don't get. The changeset, the reorderable JSDoc in List.tsx and List.doc.mjs say the handle starts the row and hangs so the text keeps its place. In a marked list the handle sits after the marker and takes its place in the row (isAfterMarker), so every movable label moves 36px, for every pointer.

Exact steps

  1. Land this together with #11575, or move #11575's defaults (List and TransferList always show handles) and its room for rows that stay put into this PR, so main never has hidden List handles or a broken label column on touch.
  2. For edge="outset" and "bleed", don't move the list. Its rows already reach the host's padding edge, so let the hanging handle use the row's own start padding, and fall back to the in-row placement when that padding is narrower than the hang. Do the same for the end variant #11575 adds (reorderGutterAtEndReachingPadding). Add a test that renders a reorderable List with edge="outset" in a padded host and checks that both list edges equal the host's padding edges and the hovered handle sits fully inside the clip.
  3. Rebase onto main and change every (any-pointer: coarse) in the stack to (pointer: coarse), so the handle's layout matches the reveal.
  4. In ListInput.tsx, exclude the handle by its own marker: button:not([data-astryx-list-reorder]), and the same on the [tabindex] part. Add a unit case where the first column is a ToggleButton and Add focuses it.
  5. Reword the changeset, the List JSDoc and List.doc.mjs, for example: "before the row's start content; in a numbered or bulleted list, after the marker, where it takes its place in the row".
  6. Small: the reveal comment in ListReorderHandle.tsx says a disabled row dims each of its slots, but Item dims the label and end content, not the start content, so say that. ListItem.tsx's file header still says each movable row ends with its handle.

The List spec change and the design record's rest row still need the owners' approval (cixzhang, and you as the design record's co-owner), as your description says.

What I checked

  • Unit tests at this head over List, Item, ListInput and TransferList: 18 files, 415 tests pass. Core typecheck passes.
  • Label positions measured in this PR's and #11575's previews with a desktop and a phone profile.
  • The outset and bleed math, read against reachesContainerPadding and the border-box reset.

@astracat-bot

astracat-bot Bot commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

In reply to @josephfarina

I'll run a full review to re-check this with your note.

@github-actions github-actions Bot added the needs:spec-owner-review Current knowledge records await owner approval label Nov 13, 2026
@ernestt
ernestt force-pushed the feat/drag-icon-reorder-handle branch from ef74432 to 50b9051 Compare November 13, 2026 22:46
@ernestt
ernestt force-pushed the feat/reorder-handle-start branch from f80dcc4 to 66cbf4e Compare November 13, 2026 22:46
@ernestt
ernestt marked this pull request as ready for review November 13, 2026 22:49

@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 pull request needs a spec decision before it can be approved, and it has ten blocking findings to fix as well.

It intentionally changes three current records: the List spec's reorder relationship (the handle moves from the row's trailing edge to its leading edge, hidden with a mouse until hover or focus, with the list reaching into its host's padding), the Item spec (a new internal leading seam), and the ordered-collection reordering design record's rest row (a handle that may stay hidden at rest). Approval needs an engineering owner to approve those edits by commenting /approve-spec 66cbf4ec2f3cf9ef5a038331d01b61aedb861d3c; a design owner, the author included, may approve the design record. The open change request from a maintainer also stands until they re-review it.

Blocking findings:

  • Desktop behavior change needs an owner decision: with a mouse or trackpad every reorderable List row's handle is now invisible until its row is hovered or focused and then fades in (ListReorderHandle.tsx:189-199); gate it to touch input, or cite the decision.
  • List FR2 ("padded MUST preserve current header, list, and row geometry") is left as it is while padded rows in a Card move in 10 px and flush rows 18 px (List.tsx:501-507), so amend FR2 with the same decision or keep the rows in place.
  • A Card publishes its inset including its 1 px border, so the list reaches under the border and the Card cuts the first pixel of the focused handle's ring (handle at x = 16 px, padding edge at 17 px; List.tsx:208-210).
  • The new Card test runs on the interaction project's phone profile, where every handle sits in its row, so it never checks the mouse layout it describes and would fail its own bound at ListReorderPointer.interaction.browser.spec.ts:142 with a mouse.
  • The always-shown in-row layout keys on (any-pointer: coarse) in List, ListReorderHandle, ListInput and TransferList, while the touch-presentation rule is a coarse primary pointer, (pointer: coarse).
  • Where the handle sits in the row (touch, a numbered list, outset, bleed), rows that stay put keep the old label column while movable rows move 36 px in (ListItem.tsx:476-491).
  • Numbered lists take the hang gutter although their handle sits in the row, moving their rows 10 px in a Card for nothing (List.tsx:501-507).
  • ItemLeadingContext is a new internal module shared by Item and ListItem that only this pull request's unapproved Item record edit names, so it needs that owner decision.
  • ListInput restates List's 30 px hang and padding reach (ListInput.tsx:202-235), and TransferList restates it as 20 px and 28 px literals, instead of sharing one definition from core's reorder module.
  • Four claims are false: a disabled row does not dim its start slot (ListReorderHandle.tsx:191-192), ListInput does not pass isInRow, ListItem.tsx's header still says the row ends with its handle, and the scope checklist marks the hover reveal's interaction change as removed.
Claims and files checked
  • Verified: the handle renders before the row's start content; with a mouse it is hidden until hover or focus and the text keeps its place where no host publishes padding; hidden, it keeps its tab stop and focus reveals it; under a coarse pointer, after a marker and under outset/bleed it sits in the row; outset and bleed lists no longer lose end room; reorder mode keeps it shown; where the host's padding is narrower, rows move in by the difference; TransferList's inset follows reorderable, not the search; ListInput's first-field focus skips only the handle; no public API changes (built surfaces identical); the List, Item, ListInput and TransferList unit suites pass; the layout uses logical properties.
  • False: a clipping container never cuts a handle; the Card test checks a mouse; a disabled row dims each slot; ListInput uses isInRow; all stale "ends the row" text is fixed; behavior and interaction changes were removed or split.
  • Files with findings: ListReorderHandle.tsx, List.tsx, ListItem.tsx, ItemLeadingContext.tsx, ListReorderPointer.interaction.browser.spec.ts, ListInput.tsx, TransferList.tsx, List.spec.md, Item.spec.md, ordered-collection-reordering.md.
  • Clear: the changeset, List.stories.tsx, Item.tsx, the removed ItemTrailingContext.tsx, List.doc.mjs, ListReorder.test.tsx, ListReorderMode and ListReorderTouch specs, listReorderContext.ts, internal/reorder.ts, listReorder.stylex.ts, ListInput's and TransferList's docs, unit tests and Chromium specs, and ReorderGripPinchZoom spec.

Automated review (maintainer link)

const FLUSH_ROOM = `${REORDER_GUTTER}px`;
// As much of each room as the container's padding holds, or all of it
// outside a container that sets its padding.
const PADDED_REACH = `min(${PADDED_ROOM}, var(--container-padding-inline-start, ${PADDED_ROOM}))`;

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.

A Card publishes its whole inset here, border included (1 px border + 11 px padding = 12 px), so this reach puts the list under the border: in the Reorder in Card story the hovered or focused padded handle's box starts at x = 16 px while the Card clips at 17 px, cutting the first pixel of its 2 px focus ring. Reach one border width less where the host has a border, or keep the hang inside the list's own box.

reachesContainerPadding && styles.reachesContainerPadding,
// Rows that reach the container's padding keep their handles in
// the rows (ListItem), so the list needs no room for them.
reorderSession != null &&

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 applies the gutter to numbered and bulleted lists too, where ListItem keeps the handle in the row (handleStaysInRow), so in a Card a numbered list's rows move from 358.7 to 368.7 px for room nothing uses. Skip the gutter when listStyle !== 'none', matching ListItem.

parseFloat(getComputedStyle(element).borderInlineStartWidth),
);
// The handle's box holds its focus ring, so the card cuts neither.
expect(handleBox.x, edge).toBeGreaterThanOrEqual(cardBox.x + border - 0.5);

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 test uses the default page, which inherits the interaction project's phone profile (isMobile, hasTouch), so every handle sits in its row and nothing hangs. With a mouse the padded handle's x is 16 px against this bound of 16.5 px (Card x 16, border 1 px). Open the story with openFinePointerStory(browser, 'core-list--reorder-in-card').

*/
const REORDER_HANDLE_HANG = 30;
/** As much of that room as the container's padding holds. */
const HANG_REACH = `min(${REORDER_HANDLE_HANG}px, var(--container-padding-inline-start, ${REORDER_HANDLE_HANG}px))`;

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 restates core List's 30 px hang and its padding reach (List.tsx:201-210), as TransferList restates the hang as 20 px and 28 px literals, kept in step only by SYNC comments. Export the hang and the reach style once from core's reorder module through @astryxdesign/core/internal/reorder, and use it in List, ListInput and TransferList.

then hangs before the row's text and takes no width, so the text keeps its
place. A reorderable list pads that room before its rows and reaches into
its host's padding by as much of it as the padding holds, so the FR9 clip
and a clipping host keep the handles. The rows move in only by the room

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.

FR2 still reads "padded MUST preserve current header, list, and row geometry", but this sentence lets rows move in (10 px for padded rows and 18 px for flush rows in a Card), so the record would contradict itself once approved. Amend FR2 in the same change, or keep the rows in place.

@ernestt
ernestt force-pushed the feat/drag-icon-reorder-handle branch from 50b9051 to b935ca9 Compare November 14, 2026 00:44
@ernestt
ernestt force-pushed the feat/reorder-handle-start branch from 66cbf4e to 81ec89b Compare November 14, 2026 00:44
@ernestt

ernestt commented Nov 14, 2026

Copy link
Copy Markdown
Contributor Author

Thanks, Joseph. Round 2 is up at 81ec89b, rebased onto main.

  1. outset/bleed: the list no longer moves. Those rows reach the host's padding edge, so the handle sits in the row. Padded and flush lists take the hang from the host's padding, min(room, --container-padding-inline-start), and move their rows in only by what the padding lacks, so a clipping Card never cuts a handle. A browser test checks each edge treatment in a Card with a mouse.
  2. This and feat(List): createReorderable's handle option places the reorder handle and sets how it reveals #11575 will merge back to back, with no release between them; the description says so.
  3. Every touch query in the stack is now (pointer: coarse), matching main's reveal and AST-094 FR13. The docs and both records say "where the primary pointer is fine".
  4. ListInput skips only the reorder handle, through isReorderHandle from the internal reorder entry, so Lab never writes the private attribute's name. A unit test gives a record a toggle as its first field.
  5. The changeset, the JSDoc and the docs say that after a list marker the handle sits in its row.
  6. Both comments are fixed.

@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 pull request needs a spec decision before it can be approved, and it has ten blocking findings to fix as well.

It intentionally changes three current records: the List spec's reorder relationship (the handle moves from the row's trailing edge to its leading edge, hidden with a mouse until hover or focus, with the list reaching into its host's padding), the Item spec (a new internal leading seam), and the ordered-collection reordering design record's rest row (a handle that may stay hidden at rest). Approval needs an engineering owner to approve those edits by commenting /approve-spec 81ec89b399a098730fe3723e5900bd5684ac162c; a design owner, the author included, may approve the design record. The open change request from an engineering owner also stands until they re-review it.

Blocking findings:

  • Desktop behavior change needs an owner decision: with a mouse or trackpad every reorderable List row's handle is now invisible until its row is hovered or focused and then fades in (ListReorderHandle.tsx:193-199); gate it to touch input, or cite the decision.
  • List FR2 ("padded MUST preserve current header, list, and row geometry") is left as it is while padded labels in a Card move in 10 px and flush labels 18 px (List.tsx:501-507), so amend FR2 with the same decision or keep the rows in place.
  • A Card's published inset includes its 1 px border, so the list reaches under the border and the Card cuts the first pixel of the focused handle's ring, and with no padded host the handle's box starts 6 px past the viewport in the Reorderable story (List.tsx:208-210).
  • The new Card test runs on the interaction project's phone profile, where every handle sits in its row, so it never checks the mouse layout it describes and would fail its own bound at ListReorderPointer.interaction.browser.spec.ts:142 with a mouse.
  • Where the handle sits in the row (touch, a numbered list, outset, bleed), rows that stay put keep the old label column while movable rows move 36 px in (ListItem.tsx:476-491).
  • Numbered lists take the hang gutter although their handle sits in the row, moving their rows 10 px in a Card for nothing (List.tsx:501-507).
  • ItemLeadingContext is a new internal module shared by Item and ListItem that only this pull request's unapproved Item record edit names, so it needs that owner decision.
  • ListInput restates List's 30 px hang and padding reach (ListInput.tsx:202-236), and TransferList restates it as 20 px and 28 px literals, instead of sharing one definition from core's reorder module.
  • The earlier coarse-pointer finding is fixed in the code but not in the List record, whose bullet still says "Where no pointer is coarse" and "Under a coarse pointer" while the code and the design record follow the primary pointer as the touch-presentation rule requires (List.spec.md:241-248).
  • Four description claims are false: ListInput does not pass isInRow, a disabled row does not dim its start slot, the Card test does not run with a mouse, and the scope checklist marks the hover reveal's interaction change as removed.
Claims and files checked
  • Verified: the handle renders before the row's start content; with a mouse it is hidden until hover or focus, and where no host publishes padding the text keeps its place; hidden, it keeps its tab stop and focus reveals it; under a coarse pointer, after a marker and under outset/bleed it sits in the row; outset and bleed lists keep their box; reorder mode keeps it shown; where the host's padding is narrower, rows move in by the difference; the in-row layout now follows the primary pointer; TransferList's inset follows reorderable, not the search; ListInput's first-field focus skips only the handle, a toggle first field included; the stale "ends the row" text is gone; the changeset describes the change; no public API changes (built surfaces identical); the List, Item, ListInput and TransferList unit suites pass; the layout uses logical properties.
  • False: a clipping container never cuts a handle; the Card test checks a mouse; a disabled row's other slots dim to half; ListInput uses isInRow; behavior and interaction changes were removed or split.
  • Files with findings: ListReorderHandle.tsx, List.tsx, ListItem.tsx, ItemLeadingContext.tsx, ListReorderPointer.interaction.browser.spec.ts, List.stories.tsx, ListInput.tsx, TransferList.tsx, List.spec.md, Item.spec.md, ordered-collection-reordering.md.
  • Clear: the changeset, Item.tsx, the removed ItemTrailingContext.tsx, List.doc.mjs, ListReorder.test.tsx, the ListReorderMode and ListReorderTouch specs, listReorderContext.ts, internal/reorder.ts and its test, listReorder.stylex.ts, ListInput's and TransferList's docs, unit tests and Chromium specs, and the ReorderGripPinchZoom spec.

Automated review (maintainer link)

Comment on lines +241 to +247
before the row's start content (`spec:AST-103` FR5). Where no pointer is
coarse, the handle shows while its row is hovered or holds the focus. It
then hangs before the row's text and takes no width, so the text keeps its
place. A reorderable list pads that room before its rows and reaches into
its host's padding by as much of it as the padding holds, so the FR9 clip
and a clipping host keep the handles. The rows move in only by the room
the host's padding lacks. Under a coarse pointer, the handle always shows

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 still keys the reveal on any pointer ("Where no pointer is coarse", "Under a coarse pointer"), while the code now uses (pointer: coarse) and the design record row and changeset say "Where the primary pointer is fine". spec:AST-094 FR13: "A touch presentation applies under a coarse primary pointer". Suggested: "Where the primary pointer is fine, the handle shows while its row is hovered or holds the focus. … Under a coarse primary pointer, the handle always shows and takes its place in the row."

@ernestt

ernestt commented Nov 17, 2026

Copy link
Copy Markdown
Contributor Author

Please hold this one. At the spec owner's suggestion the stack is becoming three pull requests: #11445 now folds in #11583, and #11454 folds into #11575, which I'm reworking next. #11600 follows after its rebase onto main, now that #8690 has landed.

@ernestt

ernestt commented Nov 17, 2026

Copy link
Copy Markdown
Contributor Author

Folded into #11575, as the spec owner suggested: the start placement and the reveal now ship together with createReorderable's handle option, and today's layout (the end, always shown) stays the default. Closing this one; the review history stays here for reference.

@ernestt ernestt closed this Nov 17, 2026
@github-actions
github-actions Bot deleted the feat/reorder-handle-start branch November 18, 2026 06:04

This branch was successfully deployed

1 active deployment
Preview — 81ec89b3 Deployed Nov 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. needs:spec-owner-review Current knowledge records await owner approval

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants