Skip to content

feat(List): under a finger, an interactive row's hit target grows toward 44 px where its neighbours leave room - #8085

Draft
vjeux wants to merge 1808 commits into
meta:mainfrom
vjeux:uikit/c11-touch-row-heights
Draft

vjeux wants to merge 1808 commits into
meta:mainfrom
vjeux:uikit/c11-touch-row-heights

Conversation

@vjeux

@vjeux vjeux commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Review only this PR's change: vjeux/astryx@9460fdb...ecc8779 (depends on #8077).

This branch also carries one revert commit that takes #8079's divider hiding and #8082's selection hold back out of the line, per Cindy's decisions on both. A build-css test now checks that every press state leaves the dividers drawn; it fails on the head before the revert. Under a finger, a tap in a link row's own padding, outside its anchor, now follows the link too (6527c0f, from review); a mouse click there still does nothing.

User need

A list row is 40 px tall, smaller than the 44 px a finger needs (spec:AST-094 FR42, component:List FR10). A tap that lands just above or below a row misses it.

Problem and solution fit

What led to it: in an iOS table a whole cell takes the tap, so a finger rarely misses. In Astryx the hit area stopped at the row's 40 px box, and taps between rows did nothing.

Under a touch screen, each interactive row's invisible hit area now grows toward 44 px, stopping halfway to the next row or control so no two targets overlap. Nothing moves and nothing paints. A tap in that band on a link row follows the link. A mouse sees no change: a click in a link row's padding still does nothing (spec:AST-017 FR59).

Size (gzip, base → head): ListItem JS +2,888 B and CSS +197 B; Item JS +149 B.

Current specification

spec:AST-094 FR42 and component:List FR10, both current.

Public delta and caller burden

None. Under a touch screen a row's ::after holds the hit area, so decorate rows with children; the note in rowPressLayer.ts and its changeset now say so.

Design and alternatives

  • 44 px rows: changes every list's density and layout, mouse users included.
  • Extra padding: shifts content and breaks compact lists.
  • An invisible layer, touch screens only (chosen): no layout or visual change, and no overlap with neighbors. The cost is the JavaScript above.

The size is a plain 44 px. No design token defines a larger one yet, so a page's --size-touch-target is not read; that arrives with the token (#8241).

Evidence

Browser proofs under a finger in Chromium and WebKit (Testing). Rows kept under 44 px by their neighbors: one-line rows reach 42 px (43 px first or last), compact rows with dividers 33 px.

Scope

  • One capability is added.
  • Unrelated fixes, cleanup, and policy changes were removed or split.
  • Consumer docs, focused tests, and migration evidence ship with the feature.
  • Public text and artifacts contain no internal Meta context.

Testing

  1. On an iPhone (or the iOS simulator), open Storybook's List "Interactive" story and tap a row: it activates. Tap one or two pixels above the first row's top edge: the row still activates. Tap a few pixels higher: nothing happens.
  2. Open List "Links" and tap just above the "Documentation" row: the page follows its link.
  3. With a mouse, click in a link row's padding, inside the row but outside its text: nothing happens, as today.
  4. With a mouse, hover and click rows: they behave as before.

Unit and browser tests cover each step in Chromium and WebKit; the new ones failed before the change. Files that time out only when the whole suite runs in parallel pass alone (owned by #8352, #8353, #8471 and #8642).

@vercel

vercel Bot commented Oct 24, 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 30, 2026 3:14am UTC

Request Review

@github-actions github-actions Bot added the needs:design-review Affects visuals — Design should review label Oct 24, 2026
@astracat-bot

astracat-bot Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

AI review status for this pull request.

Review status Updated
🟡 Reviewed (for maintainers only) Oct 30, 2026, 3:40 AM UTC

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

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on an engineering owner's decision about List row height on touch screens: no current spec governs it, so an owner needs to approve, amend (for example, rows with an action only) or reject the 52 / 62 / 44 px floors under (pointer: coarse), which also reach static and Markdown lists, and name the record that holds them. An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so if they are an engineering owner. Two changes are needed either way:

  • On a touch screen, bullets and numbers now sit 6 px above their text in marker lists and Markdown lists, because the row grows while the marker stays at its top; please keep the marker on the label's first line and cover it with a touch-context test.
  • The diff carries the whole stack (14,152 authored lines); once the earlier pull requests land, rebase so this one holds only its own commit.

[Automated review]

Comment thread packages/core/src/List/ListItem.tsx Outdated
Comment on lines +430 to +434
density === 'compact'
? listRowStyles.touchCompact
: isRenderable(description)
? listRowStyles.touchTwoLine
: listRowStyles.touchOneLine,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On a coarse pointer this floor makes the row taller than its content: Item centers the label, but the marker container keeps align-self: baseline and stays at the row's top, so bullets and numbers sit 6 px above their text (measured in core-list--bulleted-list, 40 to 52 px rows, and in Markdown, 32 to 44 px items). Keep the marker on the label's first line when the row grows, for example with the first-line slot treatment Item uses for align="first-line", and add a touch-context check that the two line up.

Comment thread packages/core/src/List/ListItem.tsx Outdated
Comment on lines +317 to +321
/**
* A row's height on a touch screen (primary pointer coarse): UIKit's table
* rows (`list.metrics`), at least that tall, never shorter than the
* platform's control size. A theme's `min-height` on `list-item` replaces it.
*/

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This docblock describes the touch row heights, but it sits on embeddedStyles (the divider radius reset). listRowStyles in listRow.stylex.ts already carries the same text, so this copy can go.

});

/**
* The touch presentation's query (utils/touchPresentation.ts TOUCH_QUERY),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utils/touchPresentation.ts does not exist at this head, so this pointer to TOUCH_QUERY leads nowhere; name the query's actual source or drop the reference.

@github-actions

github-actions Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

📚 Storybook Preview

View Storybook for this PR

🧪 Sandbox Preview

View Sandbox for this PR

Modified Components

Item (@astryxdesign/core) · View in Storybook
Metric Before After Delta
Entry File (ESM) 284B 284B 0B
Lines of Code 1372 1424 -
Complexity Very High Very High (140) -
TreeList (@astryxdesign/core) · View in Storybook
Metric Before After Delta
Entry File (ESM) 648B 648B 0B
Lines of Code 872 875 -
Complexity Very High Very High (100) -

Component Size

Component Import before Import after Delta CSS before CSS after Delta
core/AlertDialog 56.9KB 57.4KB +499B 12.4KB 12.5KB +24B
core/AppShell 57.9KB 58.3KB +418B 11.6KB 11.7KB +22B
core/AspectRatio 3.7KB 3.8KB +66B 3.5KB 3.5KB +40B
core/Avatar 37.5KB 37.5KB +54B 6.3KB 6.3KB +23B
core/AvatarGroup 39.8KB 39.8KB +50B 6.4KB 6.5KB +22B
core/AvatarGroupOverflow 39.9KB 40.4KB +514B 6.4KB 6.4KB +23B
core/AvatarStatusDot 7.1KB 7.1KB +61B 3.4KB 3.4KB +41B
core/Badge 3.9KB 4.0KB +64B 3.8KB 3.9KB +39B
core/Banner 47.8KB 48.3KB +497B 9.9KB 10.0KB +22B
core/BaseTypeahead 54.3KB 54.8KB +440B 9.9KB 9.9KB +22B
core/Blockquote 3.5KB 3.6KB +66B 3.4KB 3.4KB +39B
core/BottomSheet 34.0KB 34.0KB +69B 7.9KB 7.9KB +24B
core/BottomSheetSwitcher 14.8KB 14.8KB +67B 3.3KB 3.3KB +41B
core/BreadcrumbItem 66.4KB 67.5KB +1.1KB 11.0KB 11.4KB +360B
core/Breadcrumbs 22.4KB 22.5KB +71B 3.3KB 3.3KB +40B
core/Button 43.3KB 43.8KB +489B 9.2KB 9.2KB +21B
core/ButtonGroup 8.4KB 8.5KB +67B 3.3KB 3.3KB +40B
core/Calendar 54.9KB 55.4KB +493B 10.0KB 10.0KB +22B
core/Card 6.4KB 6.5KB +66B 6.3KB 6.4KB +42B
core/Carousel 50.2KB 50.7KB +479B 10.2KB 10.2KB +21B
core/Center 4.2KB 4.2KB +63B 4.6KB 4.6KB +42B
core/ChatComposer 60.6KB 61.1KB +475B 10.8KB 10.8KB +19B
core/ChatComposerDrawer 23.9KB 23.9KB +66B 4.5KB 4.6KB +39B
core/ChatComposerInput 55.7KB 56.2KB +480B 10.1KB 10.1KB +21B
core/ChatComposerTokenElement 55.7KB 56.2KB +479B 10.1KB 10.1KB +21B
core/ChatDictationButton 46.5KB 47.0KB +475B 9.5KB 9.5KB +20B
core/ChatLayout 48.8KB 49.3KB +470B 9.9KB 10.0KB +20B
core/ChatLayoutScrollButton 46.4KB 46.8KB +461B 9.6KB 9.6KB +20B
core/ChatMessage 23.1KB 23.1KB +59B 3.5KB 3.6KB +39B
core/ChatMessageBubble 7.0KB 7.1KB +67B 3.6KB 3.6KB +42B
core/ChatMessageList 28.9KB 29.0KB +71B 7.8KB 7.8KB +21B
core/ChatMessageMetadata 25.8KB 25.9KB +60B 3.9KB 3.9KB +23B
core/ChatSendButton 45.8KB 46.3KB +483B 9.2KB 9.2KB +21B
core/ChatSystemMessage 6.7KB 6.8KB +71B 3.7KB 3.7KB +39B
core/ChatTokenizedText 6.9KB 7.0KB +63B 3.9KB 3.9KB +40B
core/ChatToolCalls 31.9KB 31.9KB +65B 8.9KB 8.9KB +22B
core/CheckIndicator 9.0KB 9.1KB +68B 3.6KB 3.6KB +39B
core/CheckboxIndicator 4.1KB 4.1KB +65B 3.8KB 3.8KB +22B
core/CheckboxInput 49.9KB 50.4KB +461B 9.3KB 9.3KB +22B
core/CheckboxList 46.0KB 46.1KB +63B 8.1KB 8.2KB +22B
core/CheckboxListItem 54.0KB 57.8KB +3.7KB ⚠️ 10.5KB 11.0KB +538B
core/Citation 25.9KB 26.0KB +69B 4.1KB 4.2KB +41B
core/ClickableCard 12.8KB 13.3KB +531B 6.9KB 7.0KB +46B
core/Code 3.5KB 3.6KB +63B 3.4KB 3.4KB +41B
core/CodeBlock 60.5KB 61.0KB +473B 10.7KB 10.7KB +27B
core/Collapsible 11.7KB 12.2KB +508B 4.2KB 4.3KB +39B
core/CollapsibleGroup 6.4KB 6.4KB +71B 3.2KB 3.2KB +40B
core/CommandPalette 50.9KB 51.4KB +476B 11.8KB 11.8KB +23B
core/CommandPaletteEmpty 6.1KB 6.2KB +64B 3.3KB 3.4KB +42B
core/CommandPaletteFooter 23.3KB 23.3KB +68B 3.5KB 3.6KB +39B
core/CommandPaletteGroup 3.5KB 3.5KB +64B 3.3KB 3.4KB +39B
core/CommandPaletteInput 32.3KB 32.4KB +60B 8.1KB 8.1KB +22B
core/CommandPaletteItem 8.4KB 8.9KB +487B 3.5KB 3.5KB +40B
core/CommandPaletteList 22.4KB 22.5KB +65B 3.3KB 3.3KB +41B
core/ComplexSelector 55.8KB 56.3KB +518B 10.6KB 10.7KB +20B
core/ContextMenu 77.7KB 81.5KB +3.8KB ⚠️ 14.6KB 15.2KB +552B
core/ContextMenuItem 16.6KB 17.6KB +1.1KB 5.2KB 5.6KB +369B
core/DateInput 99.9KB 100.3KB +394B 14.8KB 14.8KB +20B
core/DateRangeInput 69.4KB 69.8KB +475B 11.2KB 11.2KB +21B
core/DateTimeInput 110.1KB 110.5KB +412B 15.2KB 15.2KB +20B
core/Dialog 16.2KB 16.3KB +64B 7.1KB 7.1KB +23B
core/DialogHeader 48.8KB 49.3KB +484B 9.8KB 9.8KB +20B
core/Divider 6.5KB 6.5KB +64B 3.6KB 3.6KB +43B
core/Drawer 31.6KB 31.7KB +85B 8.0KB 8.1KB +23B
core/DrawerHeader 48.9KB 49.4KB +466B 11.2KB 11.2KB +22B
core/DropdownMenu 72.7KB 73.9KB +1.2KB 14.7KB 15.3KB +549B
core/DropdownMenuCheckboxItem 16.1KB 17.3KB +1.2KB 5.6KB 5.9KB +350B
core/DropdownMenuDivider 6.6KB 6.6KB +61B 3.6KB 3.6KB +42B
core/DropdownMenuGroup 6.1KB 6.1KB +69B 3.3KB 3.3KB +39B
core/DropdownMenuItem 15.4KB 16.6KB +1.2KB 5.2KB 5.5KB +370B
core/DropdownMenuRadioGroup 6.0KB 6.1KB +62B 3.2KB 3.2KB +43B
core/DropdownMenuRadioItem 16.2KB 17.4KB +1.2KB 5.6KB 5.9KB +350B
core/DropdownMenuSubMenu 58.1KB 59.2KB +1.2KB 9.5KB 9.9KB +357B
core/EmptyState 7.7KB 7.8KB +64B 3.5KB 3.6KB +42B
core/Field 44.2KB 44.3KB +71B 8.0KB 8.0KB +22B
core/FieldLabel 39.8KB 39.8KB +58B 6.5KB 6.5KB +23B
core/FieldStatus 10.4KB 10.5KB +74B 4.2KB 4.3KB +23B
core/FileInput 54.1KB 54.5KB +444B 10.3KB 10.4KB +23B
core/FormLayout 6.3KB 6.3KB +66B 3.4KB 3.4KB +40B
core/Grid 4.3KB 4.4KB +67B 3.7KB 3.7KB +40B
core/GridSpan 3.4KB 3.5KB +63B 3.2KB 3.3KB +40B
core/HStack 7.3KB 7.3KB +62B 4.9KB 4.9KB +44B
core/Heading 9.1KB 9.2KB +64B 6.8KB 6.8KB +23B
core/Icon 8.8KB 8.9KB +60B 3.6KB 3.6KB +39B
core/IconButton 43.3KB 43.8KB +477B 9.2KB 9.2KB +21B
core/InputGroup 44.8KB 44.9KB +61B 8.0KB 8.1KB +21B
core/InputGroupText 6.3KB 6.4KB +66B 3.7KB 3.8KB +40B
core/Item 11.4KB 12.5KB +1.1KB 4.7KB 5.0KB +372B
core/Kbd 6.7KB 6.7KB +67B 3.5KB 3.5KB +40B
core/LayerProvider 63.3KB 63.8KB +517B 10.1KB 10.1KB +23B
core/Layout 8.1KB 8.2KB +63B 5.5KB 5.5KB +43B
core/LayoutContent 7.4KB 7.5KB +64B 4.9KB 5.0KB +43B
core/LayoutFooter 7.3KB 7.4KB +68B 4.8KB 4.9KB +42B
core/LayoutHeader 7.4KB 7.4KB +65B 4.8KB 4.9KB +42B
core/LayoutPanel 7.6KB 7.6KB +65B 4.8KB 4.9KB +43B
core/Lightbox 51.2KB 51.6KB +446B 9.8KB 9.8KB +21B
core/Link 43.5KB 44.0KB +481B 7.6KB 7.6KB +25B
core/List 6.7KB 6.8KB +59B 3.4KB 3.5KB +40B
core/ListItem 53.5KB 57.2KB +3.8KB ⚠️ 10.5KB 11.0KB +538B
core/Markdown 144.5KB 148.3KB +3.8KB ⚠️ 17.4KB 17.9KB +543B
core/MetadataList 23.1KB 23.2KB +67B 3.6KB 3.6KB +42B
core/MetadataListItem 6.5KB 6.5KB +64B 3.4KB 3.4KB +43B
core/MobileNav 51.0KB 51.4KB +424B 10.1KB 10.1KB +22B
core/MobileNavToggle 46.2KB 46.7KB +477B 9.4KB 9.4KB +20B
core/MoreMenu 72.9KB 74.1KB +1.2KB 14.7KB 15.3KB +549B
core/MultiSelector 76.2KB 76.6KB +439B 14.6KB 14.7KB +24B
core/NavHeadingMenu 8.9KB 9.0KB +65B 3.2KB 3.3KB +42B
core/NavIcon 3.4KB 3.5KB +63B 3.3KB 3.3KB +42B
core/NumberInput 55.7KB 56.1KB +464B 10.7KB 10.7KB +31B
core/Outline 28.6KB 29.1KB +473B 4.0KB 4.1KB +40B
core/OverflowList 8.5KB 8.6KB +67B 3.5KB 3.5KB +40B
core/Overlay 19.5KB 19.6KB +43B 3.8KB 3.9KB +17B
core/Pagination 87.7KB 88.8KB +1.1KB 15.3KB 15.7KB +348B
core/Popover 49.8KB 50.2KB +402B 12.1KB 12.1KB +20B
core/PowerSearch 155.1KB 156.2KB +1.2KB 18.6KB 19.0KB +354B
core/ProgressBar 7.7KB 7.8KB +66B 6.6KB 6.6KB +20B
core/RadioIndicator 3.8KB 3.9KB +61B 3.7KB 3.7KB +20B
core/RadioList 45.6KB 45.6KB +61B 8.0KB 8.0KB +22B
core/RadioListItem 52.1KB 53.2KB +1.1KB 9.7KB 10.0KB +351B
core/ResizeHandle 25.1KB 25.2KB +73B 3.9KB 3.9KB +41B
core/Section 7.5KB 7.6KB +67B 6.2KB 6.2KB +42B
core/SegmentedControl 38.8KB 38.9KB +73B 6.3KB 6.4KB +22B
core/SegmentedControlItem 8.6KB 9.1KB +495B 3.9KB 3.9KB +41B
core/SelectableCard 12.8KB 13.3KB +523B 7.1KB 7.2KB +46B
core/Selector 79.1KB 80.3KB +1.2KB 15.0KB 15.3KB +355B
core/SelectorOption 14.5KB 15.7KB +1.2KB 5.1KB 5.4KB +370B
core/SideNav 58.0KB 58.4KB +445B 10.6KB 10.6KB +21B
core/SideNavCollapseButton 46.6KB 47.1KB +460B 9.5KB 9.5KB +20B
core/SideNavHeading 54.7KB 55.2KB +453B 10.1KB 10.2KB +22B
core/SideNavItem 54.5KB 54.9KB +455B 10.1KB 10.1KB +22B
core/SideNavSection 6.5KB 6.6KB +59B 3.6KB 3.6KB +38B
core/Skeleton 3.8KB 3.8KB +60B 3.6KB 3.6KB +22B
core/Slider 48.5KB 48.5KB +58B 8.5KB 8.5KB +21B
core/Spinner 26.3KB 26.4KB +58B 7.5KB 7.5KB +19B
core/Stack 7.1KB 7.1KB +62B 4.9KB 4.9KB +44B
core/StackItem 6.0KB 6.1KB +63B 3.3KB 3.3KB +38B
core/StatusDot 19.0KB 19.0KB +59B 6.2KB 6.2KB +19B
core/Step 32.4KB 32.9KB +489B 5.3KB 5.3KB +22B
core/Stepper 47.4KB 47.8KB +450B 9.6KB 9.6KB +20B
core/Switch 48.4KB 48.9KB +471B 9.3KB 9.4KB +21B
core/Tab 9.7KB 10.2KB +506B 4.1KB 4.1KB +41B
core/TabList 40.2KB 40.3KB +63B 7.2KB 7.2KB +23B
core/TabMenu 51.6KB 52.1KB +455B 10.0KB 10.0KB +21B
core/Table 84.0KB 87.8KB +3.8KB ⚠️ 15.1KB 15.7KB +537B
core/TableBody 3.3KB 3.3KB +63B 3.2KB 3.2KB +42B
core/TableCell 78.8KB 82.6KB +3.8KB ⚠️ 14.8KB 15.4KB +539B
core/TableFooter 3.3KB 3.3KB +63B 3.2KB 3.2KB +42B
core/TableHeader 3.3KB 3.3KB +63B 3.2KB 3.2KB +42B
core/TableHeaderCell 78.6KB 82.4KB +3.8KB ⚠️ 14.8KB 15.3KB +552B
core/TableRow 6.2KB 6.3KB +66B 3.5KB 3.6KB +40B
core/TableSelectionToolbar 52.4KB 52.8KB +467B 11.2KB 11.2KB +21B
core/Text 8.6KB 8.6KB +66B 6.8KB 6.8KB +23B
core/TextArea 49.4KB 49.5KB +68B 9.4KB 9.4KB +21B
core/TextInput 53.5KB 54.0KB +470B 10.5KB 10.5KB +22B
core/Thumbnail 50.7KB 51.2KB +505B 11.0KB 11.0KB +25B
core/TimeInput 86.8KB 87.3KB +446B 13.8KB 13.8KB +21B
core/Timer 9.2KB 9.3KB +70B 6.8KB 6.8KB +23B
core/Timestamp 27.5KB 27.6KB +75B 9.5KB 9.6KB +21B
core/Toast 59.8KB 60.3KB +474B 9.7KB 9.7KB +22B
core/ToggleButton 44.1KB 44.6KB +457B 9.3KB 9.3KB +21B
core/ToggleButtonGroup 6.3KB 6.4KB +68B 3.2KB 3.3KB +42B
core/Token 29.6KB 30.1KB +504B 4.5KB 4.5KB +42B
core/Tokenizer 64.8KB 65.3KB +505B 11.7KB 11.7KB +21B
core/Toolbar 39.8KB 39.8KB +63B 7.7KB 7.8KB +46B
core/TopNav 51.9KB 52.3KB +428B 10.4KB 10.4KB +23B
core/TopNavHeading 54.2KB 54.6KB +431B 9.9KB 10.0KB +20B
core/TopNavItem 9.0KB 9.5KB +509B 3.8KB 3.9KB +39B
core/TopNavMegaMenu 54.2KB 54.6KB +474B 10.8KB 10.9KB +21B
core/TopNavMegaMenuFeaturedCard 6.7KB 6.8KB +66B 3.4KB 3.4KB +38B
core/TopNavMegaMenuItem 9.1KB 9.6KB +505B 4.1KB 4.1KB +38B
core/TopNavMenu 53.6KB 54.1KB +476B 10.1KB 10.1KB +23B
core/TreeList 32.5KB 33.3KB +771B 4.7KB 5.0KB +372B
core/Typeahead 61.5KB 61.9KB +453B 11.3KB 11.3KB +21B
core/TypeaheadItem 6.2KB 6.3KB +60B 3.4KB 3.5KB +39B
core/VStack 7.3KB 7.3KB +61B 4.9KB 4.9KB +44B

Sizes are gzip. Import counts the JavaScript the import loads eagerly; CSS counts the package stylesheet rules referenced by the modules it can load from its own package, lazily loaded ones included.

⚠️ Touch-only size budget

These components grew past the touch-only budget (2 KB gzip JavaScript or 1 KB gzip CSS per component). If the growth runs only on a coarse pointer, load its JavaScript lazily so the import does not carry it, or justify the cost in the pull request description; CSS stays in the package stylesheet, so justify it.

Component JavaScript CSS
core/CheckboxListItem +3.7KB ⚠️ +538B
core/ContextMenu +3.8KB ⚠️ +552B
core/ListItem +3.8KB ⚠️ +538B
core/Markdown +3.8KB ⚠️ +543B
core/Table +3.8KB ⚠️ +537B
core/TableCell +3.8KB ⚠️ +539B
core/TableHeaderCell +3.8KB ⚠️ +552B

Bundle Size Summary

Gzip figures measure each package's entry file, not the code an import pulls in.

Package Entry (ESM) Entry gzip before Entry gzip after Delta
@astryxdesign/core 4.9KB 1.2KB 1.2KB 0B
Package stylesheet Gzip before Gzip after Delta
@astryxdesign/core 34.6KB 35.1KB +546B

Accessibility Audit

Status: 2 accessibility violation(s) found — 2 serious.

Radio group pattern - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 3/11 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
RadioList - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 3/14 stories · Learn more
    • WCAG: 1.4.3 (Level AA)

Visual Regression

55 of 502 shot(s) changed.

A change here is a question, not a failure: check whether the after is the
picture you intended. Record that review on the PR. Baseline maintenance is an
explicit dispatch of CI; this report never rewrites the baseline or adds a release gate.

component story theme mode pixels
Selector Indicator Space Bottom Sheet Narrow End RTL neutral light 753,933
Selector Indicator Space Bottom Sheet Wide Start neutral light 740,072
RichTextEditor Markdown parity: side by side probe dark 558,840
RichTextEditor Markdown parity: side by side probe light 540,756
Chat Full AI Chat probe light 230,823
Chat Full AI Chat probe dark 229,805
AppShell With Mobile Nav probe light 217,010
AppShell With Mobile Nav probe dark 216,960
Collapsible Dividers probe dark 66,445
Collapsible Dividers probe light 66,445
AppShell Playground neutral dark 65,198
AppShell Playground neutral light 63,788
Chat Default neutral dark 36,304
Chat Default neutral light 35,767
Chat Empty State probe light 23,531
Chat Empty State probe dark 22,622
ChatAutoScroll Scroll Behavior Comparison neutral dark 15,378
ChatAutoScroll Scroll Behavior Comparison neutral light 14,107
Chat With Attachments probe light 13,406
Chat With Attachments probe dark 11,232

and 35 more.


Generated by PR Enrichment workflow | Storybook | Sandbox | View full report

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on an engineering owner's decision about List row height on touch screens: no current spec governs it, so an owner needs to approve, amend (for example, rows with an action only) or reject the 52 / 62 / 44 px floors under (pointer: coarse), which also reach static and Markdown lists, and name the record that holds them. An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so if they are an engineering owner. Two changes are needed either way:

  • On a touch screen, list markers still sit 6 px above their text in marker lists and Markdown lists, because the row grows while the marker stays at its top; please keep the marker on the label's first line and cover it with a touch-context test.
  • The diff carries the whole stack (15,116 authored lines); once the earlier pull requests land, rebase so this one holds only its own commit (the earlier line notes on ListItem.tsx and listRow.stylex.ts still apply).

[Automated review]

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on an engineering owner's decision about List row height on touch screens: no current spec governs the 52 / 62 / 44 px floors under (pointer: coarse), which also reach static and Markdown lists, so an owner needs to approve, amend (for example, rows with an action only) or reject them and name the record that holds them. An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so if they are an engineering owner. Needed either way:

  • Keep list markers on the label's first line: on a touch screen they sit 6 px above their text in marker and Markdown lists; a touch-context test should hold it.
  • Once the earlier stacked pull requests land, rebase so this one carries only its own commit (the earlier line notes on ListItem.tsx and listRow.stylex.ts still apply).

[Automated review]

vjeux added a commit to vjeux/astryx that referenced this pull request Oct 24, 2026
vjeux added a commit to vjeux/astryx that referenced this pull request Oct 24, 2026
@vjeux
vjeux force-pushed the uikit/c11-touch-row-heights branch from 6caf11a to 34fb8e7 Compare October 24, 2026 16:49

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval waits on an engineering owner's decision about two pieces of direction no current spec covers: the 52 / 62 / 44 px List row floors under (pointer: coarse), which also reach static and Markdown lists (approve, amend or reject them and name the record that holds them), and the draft spec:AST-094 requirements FR1–FR23. An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so if they are an engineering owner. Needed either way:

  • Keep list markers on the label's first line: on a touch screen they sit 6 px above their text in marker and Markdown lists, and a touch-context test should hold it.
  • Make CI's typecheck pass: the new "Back, slowly" path in List.stories.tsx:429 hands animate a {durationMs} timing that HoldTiming does not accept (TS2345).
  • Once the earlier stacked pull requests land, rebase so this one carries only its own commit (the earlier line notes on ListItem.tsx and listRow.stylex.ts still apply).

[Automated review]

Comment thread apps/storybook/stories/List.stories.tsx Outdated
};
const settle = async (to: 0 | 1, timing?: {durationMs: number}) => {
const current = hold.current;
const arrived = await current?.animate(to, timing);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI's typecheck fails here (TS2345): timing is typed {durationMs: number}, which matches no member of HoldTiming, since a duration needs a curve (HoldCurveTiming). Pass {durationMs: 3000, curve: [0, 0, 1, 1]} or type the parameter as HoldTiming; if a bare duration should be supported, as the runtime already allows, make curve optional in HoldCurveTiming instead.

vjeux added 6 commits October 29, 2026 14:54
…Motion constant too

The row press layer capped its release under reduced motion at a literal
200ms (CELL_RELEASE_REDUCED), the same cap the review on meta#8890 asked the
overlay to read from the shared constant (spec:AST-094 FR4: the 200 ms
Reduce Motion cap is a role, never a literal). It now reads
reducedMotionFadeConsts.duration, as the overlay does; both are 200 ms,
and the built stylesheet's cap is still 200 ms.

A unit case holds every reduced-motion cap in the layer and the overlay to
the constant. Red first: it found the layer's literal on the change before
this one.
…ame window

Both 'a dip held before its first frame lands once the hold is …' proofs
waited for no running animation, then one frame and a timeout, assuming
the next step starts within a frame. The dip lands on a timer due on the
call's own clock, though, and the proofs passed only because the evaluate
round trips covered the gap: in WebKit on a loaded box the window closed
first and the proof read the element mid-dip (opacity 0, translate none;
reproduced 1 in 4 with the round trips removed). They now wait on the
call's own finished, then on the browser's own animations still running
or waiting for their first frame, and read nothing from the animator.
…ment at once and settles then

A Reduce Motion dip whose landing runs more than its whole fade back in
late (a hold released long after the dip was due) played a 1 ms opacity
animation, which WebKit keeps pending until its next frame, and settled
the call on a 1 ms timer: the call's finished could resolve while the
element still showed opacity 0. The animator's notes say the element
appears at once there. Fails now: the landing plays one opacity animation
and the call has not settled.
…element at once and settles

A Reduce Motion landing that runs at least the whole fade back in late
had nothing left of the cross-fade, but still played a 1 ms opacity
animation and settled the call 1 ms later. WebKit keeps that animation
pending until its next frame, so the call's finished could resolve with
the element still at opacity 0. Such a landing now writes the end opacity
at once (handing a borrowed one back to the stylesheet), plays nothing,
and settles the call then, as the animator's notes say.

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested: the List touch hit area follows component:List FR10, but this pull request still carries the open #8077, #8890, #8360 and #8076 (29,461 of its 31,444 authored lines), so please land them first and rebase, or split them out. FR10's verification row also asks for every density, and an interactive density="spacious" case in the browser spec (the bottom-sheet menu rows use that density) would cover the one partition the proofs still miss.

[Automated review]

}
});

for (const story of [

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

component:List FR10's verification row asks for every density, but this loop and the cases above open only balanced and compact lists, and the Spacious story has no interactive row. An interactive density="spacious" list (the DropdownMenu and ContextMenu bottom-sheet rows use it) with one case reading its rows' bands would close that partition; its one-line rows are 48 px, so the case should read no growth and no overlap.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, added at 5fc6613: the Interactive story at density="spacious". Its 48 px rows reach 0 px on both sides and overlap nothing, in Chromium and WebKit; with the target raised to 56 px, the case fails.

vjeux added 5 commits October 29, 2026 16:34
…ot the timing table

From review (an inline comment on meta#8077 about this line): the press
controller, which every pressable component loads, imported the whole
UIKit timing table for one value, its reduced-motion cap, while
architecture:component-style-authoring INV6 ships a component only the
rows of a shared table it uses. It now reads the fade's own export,
reducedMotionCrossFade.durationMs, as the animator does; the value is
the same 200 ms.

Red first: a bundle of pressFeedback.ts carried the table's other rows
(stateChangeMs, buttonReleaseMs) on the change before this one; it now
carries the fade alone.
…th dividers drawn

From review on meta#8077: component:List FR11's verification asks for a
pressed row between two divided rows, and no case used a list with
dividers. A touch case opens the Interactive story with hasDividers,
holds the middle row and releases it, and checks the divider above it and
its own divider below, by computed border and by the pixels of each
divider's strip, while held, halfway through the release fade and after
it; each strip must differ from the row's surface just inside it at rest,
so a match is a drawn divider.

It passes in Chromium and WebKit. A page style that hides a pressed row's
divider fails it while the row is held.
…finger

From review on meta#8085: component:List FR10's verification asks for every
density, and the browser cases opened only balanced and compact lists.
A touch case opens the Interactive story at density="spacious" (the
density of the bottom-sheet menu rows): its one-line rows are 48 px,
already past the 44 px target, so their layers reach 0 px on both sides
and no two targets overlap. The story's density comes through a new args
option of the spec's openStory helper.

It passes in Chromium and WebKit. With the target raised to 56 px, it
fails: the rows then grow.
… judges its first frame on that frame's time

'a spring started right before a block plays in full after it' waited a
fixed 300 ms of wall clock after the block, then read the screencast. In
the full interaction run on a loaded box no moving frame had reached the
screencast by then, and the proof failed on an empty read. It now waits
until the page shows the box a quarter of the way along and three more
frames reach the screencast. Its bound changes form, not strength: the
curve's own start (the handle's started) must come after the block, and
the first moving frame may be no further along than a curve started a
frame before the block ended, at that frame's own time, which is the old
30 px for a frame right after the block and still holds when a loaded
machine sends frames sparsely. A curve dated at the call is 107 px in.
vjeux added 5 commits October 29, 2026 17:54
…tor's notes drop an undefined law

The animator spec's header cited 'law M1' for compositor-only motion and
useAnimator.ts cited 'law M4' for an animator that never re-renders, and
no document defines either. The spec now cites spec:AST-094 FR5, which
keeps touch motion to transform, translate, scale, rotate and opacity;
useAnimator's sentence says what it means without the citation.
…e surface

releaseAnimationsOf counted only the press owner's own animations (on it,
or its ::before or ::after). A component that draws its release on a
descendant, such as CheckboxInput's release on its box wrapper's ::after,
then lost the end of it: fading went at the 200 ms clock while the 250 ms
release still ran, and the frame it went relaid and repainted the box.

It now also counts a CSS release animation on a descendant whose nearest
press owner (closest [data-astryx-pressable]) is this element, the same
nearest-owner rule the layers read by, so a press owner nested inside
plays its own press's release and never extends this one.

Red first: a unit case whose release runs on a box inside the row found
fading gone at the clock on the change before this one; it now holds to
the release's end. A second case keeps a nested press owner's release,
on it or inside it, out of the row's.

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested: the List touch hit area follows component:List FR10, and the new spacious-density case completes the proofs its verification row asks for. This pull request still carries the open #8077, #8890, #8360 and #8076 (29,611 of its 31,618 authored lines), and its copy of #8360 is four commits behind that pull request's own head, so please land them first and rebase, or split them out.

[Automated review]

vjeux added 2 commits October 29, 2026 19:16
…ide lands when its retire runs first

Reported as a WebKit hang of the held-dip proof under an 8-worker run:
the proof's wait for the call's finished never settled. Instrumented,
the page kept drawing frames (about 60 a second) while the element sat at
opacity 0 where it started, with no animation left: the held fade out had
been finished from outside, then retired (cancelled) by its timer before
the frame that reads the call's start, so the call never started and its
landing was never armed. This case orders the retire timer before that
frame and fails on this head: the move never lands.
… that cannot come [skip ci]

The retire timer cancels a finished animation once the main thread runs
past its curve. When a sampler finished a call's animations before the
browser started them, a loaded page could run that timer before the
frame that reads the call's start: the cancel left only idle animations,
the start was never read, and the call's Reduce Motion landing was never
armed, so the element stayed hidden where it started and the call never
settled. The retire now reads such a call's start from the finished
animation before cancelling it, and with nothing left to wait on the
call keeps its own clock, so its landing still runs.

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested: the List touch hit area follows component:List FR10, and its tests cover every case that record's verification row asks for. This pull request still carries the open #8077, #8890, #8360 and #8076 (29,757 of its 31,764 authored lines), so please land them first and rebase, or split them out.

[Automated review]

vjeux added 5 commits October 29, 2026 19:46
… curve, so only rows ship the row layer's constants

The shared press overlay (utils/interactionOverlay.stylex.ts) read its
release curve from the row layer's constants (cellPressConsts in
rowPressLayer.stylex.ts). The overlay reaches nearly every component,
and .stylex modules are side effects in core's package.json, so every
component then shipped the row layer's constants (the repository's size
report: +17-47 B gzip on each component without a press row), against
architecture:component-style-authoring INV6. The overlay goes back to
its own copy of the curve, main's literal; it and the row layer's copy
are both the constants table's timing.press.highlightOutCurve, and a
unit case fails if the overlay's drifts.

Red first: a source bundle of Card carried the row layer's constants
(cellRelease) on the change before this one; it now carries the overlay
and none of them.
The changeset, the release lookup's comment and its unit case named a
checkbox's box as a part that draws its release inside the surface. No
component in this change does: the checkbox's release runs on the row
around it. The lookup still counts a release on a descendant whose
nearest press owner is the surface; the text now says that without the
example.

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested: the List touch hit area follows component:List FR10, and its browser spec passes in Chromium at this head with no change for a mouse. This pull request still carries the open #8077, #8890, #8360 and #8076 (29,856 of its 31,863 authored lines), so please land them first and rebase, or split them out.

[Automated review]

This branch was successfully deployed

1 active deployment
Preview — 0e7b0778 Deployed Oct 30, 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:design-review Affects visuals — Design should review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants