Repository navigation
fix(Item): a pointer press on an enabled delegated control that is itself a pressable surface paints the row once, in an enabled row that no swipe holds open - #14034
Conversation
… first-load scope, INV9)
…ses and states INV9 as its own rule
…esses and INV7's failure signal
… group and menu tracking owners
… cards stop painting for nested mouse presses
…d scopes INV4's signal to one profile
…TreeList, Token and the cards; gaps stated
…m, TreeList and Token
…eact-component-runtime INV13 reconciled)
…d-press gaps; list only tested cases
…en Remove cases; scope each gap to what is untested
…ts follows the every-pointer rule
…nly the control, for every pointer A browser applies :active to every ancestor of the pressed element, so a mouse or pen press on a control inside a ClickableCard, SelectableCard, Item row, TreeList row or Token also painted the container. The container rule, which already stopped a finger's press there, now marks the container for a mouse or pen press too: the shared press styles read --_nested-press-paint in their :active arms, and the marked container paints its rest look instead, hover included. Each style resets the property on its own element, so the nested control keeps its own press. press-feedback INV5 states that a key press that activates a control paints its press until release; INV7's gap note goes. Builds on cixzhang's draft in #9930.
…to l0/container-nested-press
…which acts on key down, paints none
…ress # Conflicts: # docs/architecture/press-feedback.md
…d-control press gaps close Each record drops its mouse-and-pen gap note, and its verification row names the tests that press a nested control with a finger, a pen and a mouse. The jsdom test adds the finger case for each container.
…ction paints no container press yet Chromium gives a key's :active only to the focused element, so a card's or row's hidden action paints nothing on the container. The readiness row names the gap; the real-browser spec keeps the Button's held-Space guard and leaves the containers' cases to the follow-up.
…s gap match the shipped nested press
# Conflicts: # docs/specs/components/ClickableCard/ClickableCard.spec.md # docs/specs/components/SelectableCard/SelectableCard.spec.md # docs/specs/components/Token/Token.spec.md # docs/specs/components/TreeList/TreeList.spec.md
|
/approve-spec 7d65a7f |
PR Analysis Report🔎 Preview ·
|
| Component | Size | LoC | Visual · A11y · RTL |
|---|---|---|---|
| Pagination | 156.3 kB (+183 B) · 20.6 kB CSS (0) | — | — · — · — |
| Selector | 123.0 kB (+181 B) · 20.2 kB CSS (0) | — | — · — · — |
| BreadcrumbItem | 108.2 kB (+158 B) · 14.3 kB CSS (0) | — | — · — · — |
✓ passed · ✗ needs a fix · Δ changed, for review in the shots below · ↻ needs re-verify · — did not run
144 more components
| Component | Size | LoC | Visual · A11y · RTL |
|---|---|---|---|
| lab/Comments | 384.6 kB (+150 B) · 2.5 kB CSS (0) | — | — · — · — |
| CheckboxListItem | 86.1 kB (+146 B) · 13.1 kB CSS (0) | — | — · — · — |
| charts/ChartTooltip | 237.4 kB (+145 B) · 451 B CSS (0) | — | — · — · — |
| PowerSearch | 328.2 kB (+144 B) · 27.9 kB CSS (0) | — | — · — · — |
| lab/AudioPlayer | 242.2 kB (+144 B) · 1.8 kB CSS (0) | — | — · — · — |
| lab/TransferList | 134.9 kB (+144 B) · 1.4 kB CSS (0) | — | — · — · — |
| ListItem | 85.2 kB (+139 B) · 13.1 kB CSS (0) | — | — · — · — |
| lab/MediaFullscreenButton | 231.8 kB (+139 B) · 1.5 kB CSS (0) | — | — · — · — |
| lab/MediaTime | 231.8 kB (+139 B) · 1.5 kB CSS (0) | — | — · — · — |
| lab/MediaVolume | 231.8 kB (+139 B) · 1.5 kB CSS (0) | — | — · — · — |
| ContextMenuItem | 42.6 kB (+138 B) · 7.4 kB CSS (0) | — | — · — · — |
| DropdownMenuCheckboxItem | 30.7 kB (+138 B) · 7.8 kB CSS (0) | — | — · — · — |
| lab/MediaCaptionsButton | 231.8 kB (+138 B) · 1.5 kB CSS (0) | — | — · — · — |
| lab/MediaPlaybackRate | 231.8 kB (+138 B) · 1.5 kB CSS (0) | — | — · — · — |
| lab/MediaPlayButton | 231.8 kB (+138 B) · 1.5 kB CSS (0) | — | — · — · — |
| lab/MediaSeekButton | 231.8 kB (+138 B) · 1.5 kB CSS (0) | — | — · — · — |
| lab/MediaTimeSlider | 231.8 kB (+138 B) · 1.5 kB CSS (0) | — | — · — · — |
| RadioListItem | 82.1 kB (+137 B) · 11.7 kB CSS (0) | — | — · — · — |
| lab/VideoPlayer | 240.2 kB (+137 B) · 2.1 kB CSS (0) | — | — · — · — |
| charts/Chart | 261.6 kB (+134 B) · 529 B CSS (0) | — | — · — · — |
| Markdown | 202.6 kB (+134 B) · 23.9 kB CSS (0) | — | — · — · — |
| lab/CommentComposer | 193.3 kB (+133 B) · 1.9 kB CSS (0) | — | — · — · — |
| DropdownMenuItem | 29.9 kB (+132 B) · 7.2 kB CSS (0) | — | — · — · — |
| DropdownMenuRadioItem | 30.8 kB (+132 B) · 7.8 kB CSS (0) | — | — · — · — |
| lab/TabBarMoreList | 99.1 kB (+130 B) · 1.8 kB CSS (0) | — | — · — · — |
| DropdownMenuSubMenu | 84.2 kB (+128 B) · 11.6 kB CSS (0) | — | — · — · — |
| lab/TransferListSelector | 147.8 kB (+128 B) · 1.6 kB CSS (0) | — | — · — · — |
| SelectorOption | 26.0 kB (+127 B) · 6.9 kB CSS (0) | — | — · — · — |
| DropdownMenu | 138.9 kB (+126 B) · 20.2 kB CSS (0) | — | — · — · — |
| MoreMenu | 139.2 kB (+122 B) · 20.2 kB CSS (0) | — | — · — · — |
| richtext/RichTextEditorToolbar | 299.7 kB (+121 B) · 454 B CSS (0) | — | — · — · — |
| ClickableCard | 20.0 kB (+119 B) · 8.0 kB CSS (0) | — | — · — · — |
| SelectableCard | 20.2 kB (+118 B) · 8.3 kB CSS (0) | — | — · — · — |
| TableHeaderCell | 112.6 kB (+117 B) · 20.4 kB CSS (0) | — | — · — · — |
| ContextMenu | 111.6 kB (+116 B) · 20.0 kB CSS (0) | — | — · — · — |
| lab/CommentThread | 377.5 kB (+116 B) · 2.4 kB CSS (0) | — | — · — · — |
| Item · Storybook | 22.0 kB (+112 B) · 6.3 kB CSS (0) | 1,008 (+8) | ✓ · ✓ · — |
| Table | 127.4 kB (+110 B) · 21.6 kB CSS (0) | — | — · — · — |
| TableCell | 112.7 kB (+110 B) · 20.7 kB CSS (0) | — | — · — · — |
| Overlay | 25.4 kB (+109 B) · 4.3 kB CSS (0) | — | — · — · — |
| lab/Schedule | 123.2 kB (+100 B) · 3.9 kB CSS (0) | — | — · — · — |
| lab/ChatEmojiPicker | 134.3 kB (+96 B) · 773 B CSS (0) | — | — · — · — |
| Switch | 114.8 kB (+93 B) · 11.0 kB CSS (0) | — | — · — · — |
| lab/ChatReactionBar | 135.8 kB (+92 B) · 1.1 kB CSS (0) | — | — · — · — |
| FileInput | 81.8 kB (+88 B) · 13.2 kB CSS (0) | — | — · — · — |
| Token | 31.8 kB (+88 B) · 5.1 kB CSS (0) | — | — · — · — |
| Thumbnail | 76.0 kB (+85 B) · 12.9 kB CSS (0) | — | — · — · — |
| TreeList | 48.4 kB (+85 B) · 6.1 kB CSS (0) | — | — · — · — |
| DateInput | 215.1 kB (+84 B) · 19.5 kB CSS (0) | — | — · — · — |
| Lightbox | 156.0 kB (+82 B) · 12.5 kB CSS (0) | — | — · — · — |
| DateRangeInput | 102.0 kB (+81 B) · 14.6 kB CSS (0) | — | — · — · — |
| DateTimeInput | 239.1 kB (+78 B) · 21.3 kB CSS (0) | — | — · — · — |
| lab/SelectableCardGroup | 74.6 kB (+76 B) · 162 B CSS (0) | — | — · — · — |
| ComplexSelector | 88.7 kB (+75 B) · 13.7 kB CSS (0) | — | — · — · — |
| SideNavHeading | 94.3 kB (+75 B) · 12.8 kB CSS (0) | — | — · — · — |
| lab/EmojiPicker | 125.3 kB (+74 B) · 751 B CSS (0) | — | — · — · — |
| SideNav | 120.2 kB (+72 B) · 12.8 kB CSS (0) | — | — · — · — |
| TopNavHeading | 93.4 kB (+72 B) · 12.7 kB CSS (0) | — | — · — · — |
| Collapsible | 30.2 kB (+71 B) · 4.7 kB CSS (0) | — | — · — · — |
| SideNavItem | 87.6 kB (+71 B) · 12.6 kB CSS (0) | — | — · — · — |
| Step | 32.8 kB (+71 B) · 5.8 kB CSS (0) | — | — · — · — |
| TabMenu | 89.6 kB (+71 B) · 12.7 kB CSS (0) | — | — · — · — |
| NumberInput | 110.6 kB (+70 B) · 13.5 kB CSS (0) | — | — · — · — |
| CommandPalette | 88.2 kB (+69 B) · 14.0 kB CSS (0) | — | — · — · — |
| TextInput | 105.3 kB (+69 B) · 13.2 kB CSS (0) | — | — · — · — |
| CheckboxInput | 74.2 kB (+68 B) · 11.1 kB CSS (0) | — | — · — · — |
| ChatLayout | 95.0 kB (+67 B) · 11.9 kB CSS (0) | — | — · — · — |
| FieldLabel | 59.5 kB (+67 B) · 6.5 kB CSS (0) | — | — · — · — |
| CommandPaletteItem | 13.9 kB (+66 B) · 3.7 kB CSS (0) | — | — · — · — |
| MobileNav | 84.1 kB (+66 B) · 12.0 kB CSS (0) | — | — · — · — |
| lab/Tour | 112.8 kB (+66 B) · 1.0 kB CSS (0) | — | — · — · — |
| MultiSelector | 111.0 kB (+65 B) · 19.5 kB CSS (0) | — | — · — · — |
| lab/DiffViewer | 100.5 kB (+65 B) · 2.3 kB CSS (0) | — | — · — · — |
| lab/ListInput | 102.9 kB (+65 B) · 1.3 kB CSS (0) | — | — · — · — |
| Slider | 120.0 kB (+64 B) · 9.7 kB CSS (0) | — | — · — · — |
| richtext/RichTextView | 291.8 kB (+64 B) · 2.4 kB CSS (0) | — | — · — · — |
| Outline | 27.3 kB (+63 B) · 4.4 kB CSS (0) | — | — · — · — |
| TextArea | 98.1 kB (+63 B) · 10.6 kB CSS (0) | — | — · — · — |
| TopNavItem | 15.0 kB (+63 B) · 4.1 kB CSS (0) | — | — · — · — |
| TimeInput | 187.2 kB (+62 B) · 18.3 kB CSS (0) | — | — · — · — |
| Typeahead | 100.4 kB (+62 B) · 14.9 kB CSS (0) | — | — · — · — |
| Calendar | 82.5 kB (+61 B) · 12.0 kB CSS (0) | — | — · — · — |
| richtext/RichTextEditor | 315.2 kB (+61 B) · 2.7 kB CSS (0) | — | — · — · — |
| ChatSendButton | 71.7 kB (+60 B) · 11.3 kB CSS (0) | — | — · — · — |
| TopNavMegaMenuItem | 15.6 kB (+60 B) · 4.3 kB CSS (0) | — | — · — · — |
| TableSelectionToolbar | 81.9 kB (+59 B) · 14.9 kB CSS (0) | — | — · — · — |
| AvatarGroupOverflow | 55.0 kB (+58 B) · 6.5 kB CSS (0) | — | — · — · — |
| MobileNavToggle | 73.5 kB (+58 B) · 12.0 kB CSS (0) | — | — · — · — |
| Popover | 110.6 kB (+57 B) · 15.9 kB CSS (0) | — | — · — · — |
| Button | 71.2 kB (+56 B) · 11.3 kB CSS (0) | — | — · — · — |
| ChatComposer | 95.7 kB (+56 B) · 14.0 kB CSS (0) | — | — · — · — |
| Field | 64.1 kB (+56 B) · 8.0 kB CSS (0) | — | — · — · — |
| Tab | 15.4 kB (+56 B) · 4.4 kB CSS (0) | — | — · — · — |
| Carousel | 83.1 kB (+55 B) · 12.4 kB CSS (0) | — | — · — · — |
| ChatComposerInput | 92.9 kB (+55 B) · 12.8 kB CSS (0) | — | — · — · — |
| ChatComposerTokenElement | 92.9 kB (+55 B) · 12.8 kB CSS (0) | — | — · — · — |
| DialogHeader | 74.6 kB (+55 B) · 13.0 kB CSS (0) | — | — · — · — |
| ToggleButton | 71.9 kB (+55 B) · 11.4 kB CSS (0) | — | — · — · — |
| lab/CommentPin | 64.1 kB (+55 B) · 1.2 kB CSS (0) | — | — · — · — |
| ChatLayoutScrollButton | 71.8 kB (+54 B) · 11.5 kB CSS (0) | — | — · — · — |
| Tokenizer | 119.2 kB (+54 B) · 22.5 kB CSS (0) | — | — · — · — |
| TopNavMenu | 92.6 kB (+54 B) · 12.7 kB CSS (0) | — | — · — · — |
| BaseTypeahead | 88.8 kB (+53 B) · 12.4 kB CSS (0) | — | — · — · — |
| lab/DialogHeroHeader | 96.1 kB (+53 B) · 372 B CSS (0) | — | — · — · — |
| AlertDialog | 138.6 kB (+52 B) · 16.5 kB CSS (0) | — | — · — · — |
| AppShell | 95.7 kB (+51 B) · 15.2 kB CSS (0) | — | — · — · — |
| DrawerHeader | 74.7 kB (+50 B) · 14.5 kB CSS (0) | — | — · — · — |
| IconButton | 71.3 kB (+50 B) · 11.3 kB CSS (0) | — | — · — · — |
| ChatDictationButton | 71.8 kB (+49 B) · 11.4 kB CSS (0) | — | — · — · — |
| Toast | 111.3 kB (+49 B) · 11.7 kB CSS (0) | — | — · — · — |
| TopNav | 75.3 kB (+49 B) · 12.4 kB CSS (0) | — | — · — · — |
| Banner | 73.3 kB (+48 B) · 11.9 kB CSS (0) | — | — · — · — |
| RadioList | 65.6 kB (+47 B) · 8.0 kB CSS (0) | — | — · — · — |
| SegmentedControlItem | 20.0 kB (+47 B) · 4.4 kB CSS (0) | — | — · — · — |
| SideNavCollapseButton | 72.2 kB (+47 B) · 11.4 kB CSS (0) | — | — · — · — |
| TopNavMegaMenu | 86.5 kB (+44 B) · 13.4 kB CSS (0) | — | — · — · — |
| InputGroup | 66.2 kB (+39 B) · 9.5 kB CSS (0) | — | — · — · — |
| CheckboxList | 69.4 kB (+38 B) · 8.5 kB CSS (0) | — | — · — · — |
| Link | 61.3 kB (+38 B) · 7.8 kB CSS (0) | — | — · — · — |
| CodeBlock | 87.6 kB (+34 B) · 13.1 kB CSS (0) | — | — · — · — |
| Stepper | 73.0 kB (+26 B) · 11.5 kB CSS (0) | — | — · — · — |
| ButtonGroup | 45.3 kB (+3 B) · 3.8 kB CSS (0) | — | — · — · — |
| ToggleButtonGroup | 42.5 kB (+2 B) · 3.8 kB CSS (0) | — | — · — · — |
| charts/ChartLegend | 44.6 kB (+1 B) · 224 B CSS (0) | — | — · — · — |
| Heading | 13.2 kB (+1 B) · 6.2 kB CSS (0) | — | — · — · — |
| AvatarGroup | 51.6 kB (0) · 6.5 kB CSS (0) | — | — · — · — |
| ChatMessageList | 29.5 kB (0) · 7.9 kB CSS (0) | — | — · — · — |
| ChatToolCalls | 34.0 kB (0) · 9.3 kB CSS (0) | — | — · — · — |
| CommandPaletteInput | 35.1 kB (0) · 8.4 kB CSS (0) | — | — · — · — |
| InfoTip | 53.9 kB (0) · 6.1 kB CSS (0) | — | — · — · — |
| NavHeadingMenuItem | 20.3 kB (0) · 7.1 kB CSS (0) | — | — · — · — |
| ProgressBar | 12.5 kB (0) · 7.1 kB CSS (0) | — | — · — · — |
| Timer | 14.8 kB (0) · 6.8 kB CSS (0) | — | — · — · — |
| Tooltip | 35.1 kB (0) · 5.1 kB CSS (0) | — | — · — · — |
| lab/TabBarItem | 3.9 kB (0) · 1.8 kB CSS (0) | — | — · — · — |
| Avatar | 48.8 kB (−1 B) · 6.4 kB CSS (0) | — | — · — · — |
| Text | 12.3 kB (−1 B) · 6.2 kB CSS (0) | — | — · — · — |
| Timestamp | 28.8 kB (−1 B) · 11.6 kB CSS (0) | — | — · — · — |
| lab/TabBar | 85.1 kB (−1 B) · 1.8 kB CSS (0) | — | — · — · — |
| HoverCard | 31.6 kB (−2 B) · 4.8 kB CSS (0) | — | — · — · — |
| SegmentedControl | 105.9 kB (−2 B) · 7.8 kB CSS (0) | — | — · — · — |
| Spinner | 26.0 kB (−2 B) · 7.0 kB CSS (0) | — | — · — · — |
| lab/LineClamp | 14.9 kB (−2 B) · 168 B CSS (0) | — | — · — · — |
| StatusDot | 36.9 kB (−8 B) · 6.1 kB CSS (0) | — | — · — · — |
Package size: @astryxdesign/core 8.18 MB packed (+2.4 kB); no new dependencies.
Touched components checked; for the full suites, add ci:run-visual for Visual, ci:run-rtl for RTL.
Generated by PR Enrichment workflow | View full report
There was a problem hiding this comment.
Changes requested. A finger, pen or mouse press on a delegated Link now paints the row once, as the press-feedback and Item records ask. But the override that turns off the control's own overlay also removes a keyboard press's paint, and two description items need work.
- Space press on a delegated Button paints nowhere on a desktop:
delegatePressToRowkeeps--_nested-press-painton the control while the row is enabled (packages/core/src/hooks/useClickableContainer.ts:227), so where the primary pointer is fine a held Space on a focused delegatedButtonshows its rest overlay instead of its pressed tint and the row stays clear too (reproduced in Chromium), which contradicts press-feedback INV5 and the description's "a Space press on a focused delegated button paints the button"; keep the delegate mark, write the override only for a mouse or pen press from the row's pointerdown callback (the own-action branch ofcancelNestedPress, clearing on release asmarkNestedPressdoes), and add a fine-pointer Space test. - Title claims more than the change does: a Space press stays on the control, a disabled row leaves the control its own press, and a finger on a disabled delegated
Buttonpaints nothing, so please retitle to something like "fix(Item): in an enabled row, a pointer press on an enabled delegated control that is itself a pressable surface paints the row once". - First-load delta for the grown press modules is missing:
pressFeedback.tsanduseClickableContainer.tsare shared modules this change grows, so component-import-boundaries INV10 asks the description to report the first-load gzip delta on the four reference pages (measured locally against the base: docs +50 B, form +48 B, menu +122 B, table +153 B, all within 0.3 KB).
Non-blocking:
- Passive comment in surfaceAt: "A disabled or held control is checked first" (
pressFeedback.ts:416-417) could read "The disabled-or-held check comes first: that control takes the press and paints nothing." - Stale surfaceAt JSDoc: the doc comment above
surfaceAtstill says "Innermost wins"; for a delegated control it now returns the row.
Claims and files checked
Review mode: full; reason: spec-record
Title (live): fix(Item): a press on a delegated control that is itself a pressable surface paints the row once
Claims (run here means the jsdom tests and Chromium probes ran in this review; CI skipped its test jobs on this draft head):
- Title: a press on a delegated pressable control paints the row once — false for a Space press, a disabled row and a disabled delegated
Buttonunder a finger (pressFeedback.ts:547,Item.tsx:833,pressFeedback.ts:409-412). - Changeset and primary intent: a finger or pen press paints the row, the control's mouse overlay turns off, a disabled row or control keeps its press — verified (
Item.nestedPress.test.tsx:116,:125,:133,:142,pressFeedback.test.ts:393,:403, run here; pen follows the finger path atpressFeedback.ts:660). - Mouse and pen: one pressed fill where the
Linkadded a second band — verified (Chromium probe here: theLink's background goes from 0.1 alpha to clear while the row keeps its fill). - Finger: the row lights where only the
Linklit — verified (Item.nestedPress.test.tsx:116fails on the base and passes on the head, run here). - Another control in the row still paints alone; the row's own surface paints the row — verified (only the delegated control carries the mark; existing cases at
Item.nestedPress.test.tsx:97and:105pass, run here). - A Space press on a focused delegated button paints the button (user impact, change list and records sections) — false where the primary pointer is fine (Chromium probe here); true where the press controller paints Space (
pressFeedback.test.ts:414). - A disabled row leaves the control its press; a finger on a disabled delegated
Buttonpaints nothing — verified (Item.tsx:833,pressFeedback.ts:409-412, tests run here). - Not covered: wrapper-marked controls, a delegated
Button's scale under a mouse, a disabled delegatedLinkunder a finger, a mouse on a disabled delegated control — verified by reading (Link.tsx:452,:519,Button.tsx:187,useClickableContainer.ts:267). - Apps can drop an
xstyleoverride of theLink's press — consistent with the code. - Pointer presses are governed by press-feedback INV7 and Item FR9; key presses by INV5 — the records read so; the code breaks INV5 as above.
- Cause: the
Linkcarries its own press marker and:activearm — verified (base probe paints both). - New owner module, controller change, helper, layout effect, record lines and tests as described — verified by reading each file.
- No public API change — verified (the API generator built here lists no row for Core or any theme).
- Builds on the merged container nested-press change and targets
main; the sibling card and thumbnail change does not touch Item's delegate path — verified (base is that merge; the sibling's files read live). - Red-first, 21-case browser regression, 3,760-test run, mutation run, type, lint, format and knowledge checks — reported; the jsdom red-first and ESLint re-run here agree; CI has not run.
- Writing rubric: no narration, research, status or references in the two record lines — verified.
Files:
.changeset/item-delegated-control-press-paints-row.md— clear.apps/storybook/stories/NestedControlPress.stories.tsx— clear.docs/architecture/press-feedback.md— clear (owner-approved for this head).docs/specs/components/Item/Item.spec.md— clear (owner-approved for this head).packages/core/src/Item/Item.nestedPress.test.tsx— clear.packages/core/src/Item/Item.tsx— writes the override that causes the Space regression.packages/core/src/__tests__/ItemDelegatedPress.a11y.chromium.spec.ts— clear; not run here.packages/core/src/hooks/useClickableContainer.ts— Space regression; INV10 delta.packages/core/src/privateAttributes/pressDelegate.stylex.ts— clear.packages/core/src/utils/pressFeedback.test.ts— the Space case covers only a coarse pointer.packages/core/src/utils/pressFeedback.ts— INV10 delta; two non-blocking comment notes.
There was a problem hiding this comment.
Changes requested. A finger, pen or mouse press on a delegated Link now paints the row once, as the press-feedback and Item records ask (confirmed locally in Chromium and in the jsdom tests). The override that turns off the control's own overlay also removes a keyboard press's tint, and the title and description need bounds.
- Space press on a delegated Button paints nowhere on a desktop:
delegatePressToRowkeeps--_nested-press-painton the control while the row is enabled (packages/core/src/hooks/useClickableContainer.ts:227), so where the primary pointer is fine a held Space on a focused delegatedButtonshows a transparent overlay instead of its pressed tint and the row stays clear too (reproduced locally in Chromium), which contradicts press-feedback INV5 and the description's "a Space press on a focused delegated button paints the button"; keep the delegate mark, write the override only for a mouse or pen press from the row's pointerdown callback (the own-action branch ofcancelNestedPress, cleared on release asmarkNestedPressdoes), and add a fine-pointer Space test. - Title claims more than the change does: a key press never paints the row (Space stays on the control and Enter paints no press), a disabled row leaves the control its own press, a finger on a disabled delegated
Buttonpaints nothing, and a finger on the delegated control of a row that a swipe holds open paints nothing, so please retitle to something like "fix(Item): a pointer press on an enabled delegated control that is itself a pressable surface paints the row once, in an enabled row that no swipe holds open". - First-load delta for the grown press modules is missing:
pressFeedback.tsanduseClickableContainer.tsare shared modules this change grows, so component-import-boundaries INV10 asks the description to report the first-load gzip delta on the four reference pages (measured locally against the base: docs +50 B, form +48 B, menu +124 B, table +152 B, all within 0.3 KB).
Non-blocking:
- Passive comment in surfaceAt: "A disabled or held control is checked first" (
pressFeedback.ts:416-417) could read "The disabled-or-held check comes first: that control takes the press and paints nothing." - Stale surfaceAt JSDoc: the doc comment above
surfaceAtstill says "Innermost wins"; for a delegated control it now returns the row.
Claims and files checked
Review mode: same-head; reason: none
- Changed rules (0): none.
- Title (live): "fix(Item): a press on a delegated control that is itself a pressable surface paints the row once" — false for key presses, a disabled row, a disabled delegated control under a finger and a swipe-held row (see above).
- Changeset: a delegated pressable control's finger or pen press paints the row and its own mouse overlay turns off — verified (jsdom tests run locally, both delegated-Link cases fail on the base; Chromium capture).
- Changeset: a disabled row, or a disabled control, keeps the press as before — verified (disabled-row and disabled-Button tests; a disabled control's overlay arm is guarded by its enabled state).
- Description, mouse impact: one pressed fill, and the Link's background moves from rgba(0, 0, 0, 0.1) during the press to clear — verified (Chromium capture).
- Description, finger impact: the row lights instead of the Link's box — verified (test fails on the base, passes on the head).
- Description, unchanged: another control in the row paints only itself, and the row's own surface paints the row — verified (existing nested-press tests pass locally; those paths are untouched).
- Description, unchanged: Space on a focused delegated button paints the button — false where the primary pointer is fine; the same sentence appears in the Change and Records sections.
- Description, unchanged: a disabled row leaves the control its press, and under a finger a disabled delegated Button paints nothing — verified (tests).
- Description, not covered: wrapper-marked controls, a delegated Button's scale under a mouse, a disabled Link under a finger, and a disabled control under a mouse or fine-pointer pen — verified from the code.
- Description, change list (new private owner module, the press controller's surface order, key presses not redirected, the new helper, Item's layout effect beside its aria-current sync, the record path and Verification row, the tests, the changeset) — verified against the diff, apart from the Space sentence above.
- Description, cause and records — verified against the current press-feedback and Item records.
- Description, no public API change — verified (no export, prop, default, theme target or public attribute changes).
- Description, builds on the merged nested-press change and targets main — verified.
- Description, evidence (red-first runs, 21-case regression spec, 176 files and 3,760 tests, mutation run, type, lint, format and knowledge checks) — reported; the red-first jsdom result and lint reproduced locally; CI skipped its test jobs on this draft head.
- Description, writing rubric results — present.
- Files:
.changeset/item-delegated-control-press-paints-row.mdclear;apps/storybook/stories/NestedControlPress.stories.tsxclear;docs/architecture/press-feedback.mdclear;docs/specs/components/Item/Item.spec.mdclear;packages/core/src/Item/Item.nestedPress.test.tsxclear;packages/core/src/Item/Item.tsxSpace finding (writes the override on each commit);packages/core/src/__tests__/ItemDelegatedPress.a11y.chromium.spec.tsclear (not run in CI);packages/core/src/hooks/useClickableContainer.tsSpace finding;packages/core/src/privateAttributes/pressDelegate.stylex.tsclear;packages/core/src/utils/pressFeedback.test.tsSpace finding (coarse pointer only);packages/core/src/utils/pressFeedback.tsSpace finding (false key comment) and two non-blocking comment notes.
…g a mouse or pen press on it, so a Space press keeps its tint
|
/approve-spec a4e2d9d |
There was a problem hiding this comment.
Changes requested. The keyboard regression is fixed: a Space press on a delegated Button keeps its tint, and a mouse, pen or phone-finger press on a delegated Link now paints the row once (confirmed locally in Chromium and in the jsdom tests). One claim still needs a bound before this can be approved.
- A finger where the primary pointer is fine still paints the delegated control: the title, the changeset and the primary-intent paragraph say every finger press paints the row instead of the control, but the press-time override skips a finger (
packages/core/src/hooks/useClickableContainer.ts:275), so on a touchscreen laptop theLink's own:activeband still paints beside the row's press (from reading the code), and either dropping that touch condition with a test or bounding those three places to a finger where the primary pointer is coarse fixes it.
Non-blocking:
- First load figures are from the previous head: measured locally at this head, the reference pages grow by docs +49, form +67, menu +134 and table +160 B gzip, all within the 0.3 KB allowance.
Claims and files checked
Review mode: incremental; reason: none
- Changed rules (0): none.
- Title (live): a pointer press on an enabled, pressable delegated control paints the row once, in an enabled row no swipe holds open — false for a finger where the primary pointer is fine (see above).
- Changeset: a finger or pen press paints the row instead of the control — false for a finger where the primary pointer is fine; verified for a phone finger (jsdom tests fail on the base and pass here; Chromium probe) and for a pen from the code.
- Changeset: the control's own mouse press overlay turns off, so a mouse press shows the row's press once — verified (Chromium capture; the test fails on the base and passes here; the override is gone after release).
- Changeset: a disabled row, or a disabled control, keeps the press as before — verified (disabled-row and disabled-Button tests pass on both; a disabled control is checked before the redirect).
- Description, primary intent: the same finger and pen sentence as the changeset — same result.
- Description, builds on the merged nested-press change and targets main — verified.
- Description, mouse or pen impact: one pressed fill, the Link's background going from 0.1 to clear — verified for a mouse (Chromium capture), a pen from the code.
- Description, finger impact: the row lights — verified (phone probe, tests); the statement about the base is reported.
- Description, unchanged: another control paints only itself, and the row's surface paints the row — verified (those paths are untouched; existing tests pass).
- Description, unchanged: Space on a focused delegated button paints the button — verified (Chromium frame identical to the base; the fine-pointer test fails at the previous head and passes here).
- Description, unchanged: a disabled row leaves the control its press, and a finger on a disabled delegated Button paints nothing — verified (tests).
- Description, not covered: wrapper-marked controls, a delegated Button's press scale, a disabled Link under a finger, a disabled control under a mouse or fine-pointer pen — verified from the code.
- Description, apps can drop an xstyle override — holds for a mouse, a pen and a phone finger, not a touchscreen-laptop finger (same finding).
- Description, records: the pointer rules govern pointer presses and the key-press rule keeps Space on the control — verified against the current records.
- Description, cause — verified (the Link carries its own press marker and
:activearm). - Description, change list (new private owner module, the controller's surface order, key presses not redirected, the press-time override in the pointerdown callback cleared on release, Item's layout effect beside its aria-current sync, the record path and Verification row, the tests, the changeset) — verified against the diff.
- Description, evidence (red-first runs, the 21-case regression spec, 176 files and 3,760 tests, the mutation run, type, lint, format and knowledge checks) — reported; the jsdom red-first result, a 53-file subset, lint and format reproduced locally; CI skipped its test jobs on this draft head.
- Description, writing rubric results — present.
- Description, first load — reported for the previous head; measured locally at this head, within 0.3 KB (note above).
- Description, scope and no public API change — verified (the API generator finds no change).
- Files:
.changeset/item-delegated-control-press-paints-row.mdfinger finding;apps/storybook/stories/NestedControlPress.stories.tsxclear;docs/architecture/press-feedback.mdclear;docs/specs/components/Item/Item.spec.mdclear;packages/core/src/Item/Item.nestedPress.test.tsxclear;packages/core/src/Item/Item.tsxfinger finding (its comment);packages/core/src/__tests__/ItemDelegatedPress.a11y.chromium.spec.tsclear (not run in CI);packages/core/src/hooks/useClickableContainer.tsfinger finding;packages/core/src/privateAttributes/pressDelegate.stylex.tsclear;packages/core/src/utils/pressFeedback.test.tsclear;packages/core/src/utils/pressFeedback.tsclear.
… control's own :active paint, for a touch screen whose primary pointer is fine
|
/approve-spec 8a2531b |
There was a problem hiding this comment.
Changes requested. A mouse, pen or finger press on a delegated Link now paints the row once, as the press-feedback and Item records ask, and the new jsdom and Chromium cases fail without this change and pass with it (reproduced locally); the code needs no change, only two description fixes.
- Description overstates which presses paint the row: the primary intent, the two User impact pointer bullets and the Space bullet promise a row press for every delegated control, but an
aria-disableddelegatedButtonpaints nothing, a disabled row leaves the control its own press, a control whose press marker sits on a wrapper (CheckboxInput,Switch) keeps a finger's or pen's press, and a focusedaria-disabledButtonpaints nothing for Space, so each sentence needs the title's "enabled … itself a pressable surface" bound. - Miss: "Unchanged" other-control claim misses two recorded gaps: "A press on another control inside the row still paints only that control" is false for a finger where the primary pointer is fine and for a mouse or pen on a reorderable List row's Reorder handle (both recorded gaps, unchanged here), so say it paints as before or name the two gaps.
- First load figures are from the previous head: measured locally at this head, docs +49 B, form +64 B, menu +131 B and table +158 B gzip, all within 0.3 KB.
- Red-first count is from an earlier head: at this head three jsdom delegated-
Linkcases fail without this change (finger, mouse and fine-pointer finger), reproduced locally.
Claims and files checked
Review mode: full; reason: requested
- Claim, title (an enabled delegated pressable control paints the row once, in an enabled row): verified by jsdom and Chromium runs locally.
- Claim, primary intent (every finger or pen press on a delegated pressable control paints the row): false for a disabled delegated
Buttonand a disabled row. - Claim, builds on the merged base change and targets
main: verified. - Claim, a mouse or pen press shows one row fill, with the measured band before: false for wrapper-marked controls and a disabled row; the measurement verified locally.
- Claim, a finger press lights the row: false for wrapper-marked controls and a disabled
Button. - Claim, another control still paints only itself: false in two recorded gaps.
- Claim, the row's own surface paints the row: verified.
- Claim, Space on a focused delegated button paints the button: verified for an enabled button, false for an
aria-disabledone. - Claim, a disabled row leaves the control its press, and a disabled
Buttonpaints nothing under a finger: verified. - Claim, the Not covered list (wrapper-marked controls,
Buttonscale, disabledLink, disabled control under a mouse or fine-pointer pen): verified. - Claim, an
xstyleworkaround can be dropped: verified by reading the code. - Claim, records govern pointer and key presses with no owner decision needed: verified; both records are current.
- Claim, cause (a
Linkis its own pressable surface): verified; the new cases fail without this change. - Claim, change list (private attribute owner, controller redirect with the disabled check first, keys not redirected, press-time overlay override for any pointer cleared on release, layout effect while enabled, record path and Verification row): verified.
- Claim, tests (six Item cases, three controller cases, two Chromium cases): verified, run locally.
- Claim, evidence (red-first, regression run, test totals, mutation, lint and typecheck): reported; the 21-case regression spec, typecheck, lint and the knowledge check also pass locally; the red-first count is stale.
- Claim, first-load deltas within 0.3 KB: reported for the previous head; measured locally at this head and within the limit.
- Claim, no public API change: verified with the API surface generator (0 rows).
- Claim, the overlapping sibling change does not touch Item's delegate path: verified.
- Claim, writing rubric for the two record lines: verified.
- Claim, changeset (finger or pen press paints the row, mouse overlay off, disabled row or control keeps its press): verified.
- File
.changeset/item-delegated-control-press-paints-row.md: clear. - File
apps/storybook/stories/NestedControlPress.stories.tsx: clear. - File
docs/architecture/press-feedback.md: clear. - File
docs/specs/components/Item/Item.spec.md: clear. - File
packages/core/src/Item/Item.nestedPress.test.tsx: clear. - File
packages/core/src/Item/Item.tsx: clear. - File
packages/core/src/__tests__/ItemDelegatedPress.a11y.chromium.spec.ts: clear. - File
packages/core/src/hooks/useClickableContainer.ts: clear. - File
packages/core/src/privateAttributes/pressDelegate.stylex.ts: clear. - File
packages/core/src/utils/pressFeedback.test.ts: clear. - File
packages/core/src/utils/pressFeedback.ts: clear.
There was a problem hiding this comment.
Approved pending CI. A mouse, pen or finger press on an enabled delegated Link in an enabled row now paints the row once, as the press-feedback and Item records ask: reproduced here, the three new jsdom cases fail on this branch's base and pass on the head, and in a real Chromium the Link's computed background during a mouse press goes from rgba(0, 0, 0, 0.1) to clear while the row keeps its fill. Every claim in the title, the description and the changeset holds at this revision, including the bounds on a disabled row, a disabled control and a wrapper-marked delegate. CI has not run its test jobs on this revision yet, so the approval is pending those checks.
- Test name says "for a mouse press only" while the case below it covers a finger: in
packages/core/src/Item/Item.nestedPress.test.tsxthe next case proves the same override is written for a finger press, andcancelNestedPresswrites it for any pointer, so dropping "only" from the name keeps the file true (non-blocking).
Claims and files checked
Review mode: full; reason: requested
Claims:
- Title, an enabled delegated control that is itself a pressable surface paints its row once: verified (jsdom runs and a Chromium probe here).
- Primary intent, a finger or pen press paints the row and the control's own pressed overlay turns off for a mouse, a pen or a fine-pointer finger: verified; its "enabled row", "enabled control" and "itself a pressable surface" bounds exclude every case I found that would otherwise falsify it.
- Builds on the merged nested-press change and targets the default branch: verified.
- Mouse or pen impact, one row fill instead of a second band, with the measured background: verified here in both trees.
- Finger impact, the row lights where only the control's box lit: verified by the red-first run here.
- Unchanged, a press on another control in the row paints as before, with the two recorded gaps named: verified; that branch is behaviourally identical and both gaps are in the current records.
- Unchanged, a press on the row's own surface paints the row: verified.
- Unchanged, Space on a focused enabled delegated button paints the button: verified by two cases here, one per primary-pointer kind.
- Unchanged, a disabled row leaves the control its press and a disabled delegated button paints nothing under a finger: verified by two cases here.
- The "not covered" list (wrapper-marked delegates, the button press scale, a disabled link, a disabled control under a mouse or fine-pointer pen): verified by reading the code.
- A caller's styling workaround can be dropped: verified by reading the code.
- The records named govern the pointer press and the key press with no owner decision needed: verified against the current records.
- The seven change bullets: verified file by file.
- Red first, three jsdom cases fail and the disabled cases pass without the fix, both browser cases fail: the jsdom half reproduced here; the browser half reported, with its mouse assertion reproduced here.
- Regression, the 21-case nested-control browser spec passes on both sides: reported, not run here; the count is right.
- Checks (a wider vitest sweep, a mutation check, shared-identity and private-attribute tests, TypeScript, strict lint, formatting, knowledge check): reported; the type check, strict lint over the changed files, the knowledge check and a 3,209-test run over the same areas were run here and pass.
- First load, four reference pages each within the 0.3 KB allowance: reported; measured here as +49, +64, +132 and +159 bytes gzip.
- Writing rubric results, none in every row: verified against both record edits.
- Scope and overlap, including the sibling pull request that changes the card and thumbnail press: verified.
- No public API change: verified by running the repository's own API-delta generator over both built trees (zero rows).
Files:
.changeset/item-delegated-control-press-paints-row.md: clear.apps/storybook/stories/NestedControlPress.stories.tsx: clear; the new delegating-row case renders and its test id resolves in the built story.docs/architecture/press-feedback.md: clear; oneapplies_topath, owner-approved at this revision.docs/specs/components/Item/Item.spec.md: clear; one FR9 Verification row in the table's existing columns, owner-approved at this revision.packages/core/src/Item/Item.nestedPress.test.tsx: the naming note above; the six cases otherwise assert what the description says.packages/core/src/Item/Item.tsx: clear; the layout effect marks a node the row does not render, before the controller's window listener can read it, and its cleanup frees that node.packages/core/src/__tests__/ItemDelegatedPress.a11y.chromium.spec.ts: clear; its routing line parses and matches every changed source path, and both of its selectors resolve at this revision.packages/core/src/hooks/useClickableContainer.ts: clear; the restructured guard matches the base on every path but the delegate one, and the override lasts only for its press.packages/core/src/privateAttributes/pressDelegate.stylex.ts: clear; one owner module for the private attribute, exporting only its writer and reader.packages/core/src/utils/pressFeedback.test.ts: clear.packages/core/src/utils/pressFeedback.ts: clear; the disabled-or-held check stays ahead of the redirect and the doc comment states it.
…elow covers the same override
There was a problem hiding this comment.
Approved pending CI. A mouse, pen or finger press on an enabled delegated Link in an enabled row now paints the row once, as the press-feedback and Item records ask. Reproduced locally, the three new jsdom cases fail on the base and pass on this revision. In Chromium, the Link's background during a mouse press goes from rgba(0, 0, 0, 0.1) to clear while the row keeps its fill. The earlier test-name note is fixed, and CI has not run its test jobs on this revision yet, so the approval is pending those checks.
Claims and files checked
Review mode: incremental; reason: none
changed rules (0)
Claims:
- Title: a pointer press on an enabled delegated control that is itself a pressable surface paints the row once, in an enabled row no swipe holds open: verified (jsdom cases and a Chromium probe, run here).
- Primary intent: a finger or pen press paints the row, and the control's own pressed overlay turns off for a mouse, a pen or a finger on a fine primary pointer: verified (three jsdom cases fail on the base and pass here); its "enabled" and "itself a pressable surface" bounds exclude every falsifying case found.
- Builds on the merged nested-press change and targets the default branch: verified (that merge is this branch's base).
- Mouse or pen impact, one row fill instead of a second band, with the measured background: verified in Chromium in both trees here.
- Finger impact, the row lights where only the control's box lit: verified (jsdom red-first and a Chromium touch probe here).
- Unchanged: a press on another control paints as before, with the two recorded gaps named: verified (that branch is behaviourally identical; both gaps are in the current records).
- Unchanged: a press on the row's own surface paints the row: verified (untouched path).
- Unchanged: Space on a focused, enabled delegated button paints the button: verified (two tests, one per primary-pointer kind, run here).
- Unchanged: a disabled row leaves the control its own press, and under a finger a disabled delegated button paints nothing: verified (two tests here; the link-as-button pointer-events rule read in the code).
- Not covered list (wrapper-marked delegates, the button's press scale, a disabled link, a disabled control under a mouse or fine-pointer pen): verified by reading the code; that it is tracked as a follow-up is unverified and is a process note, not a behaviour claim.
- A caller's styling workaround can be dropped: verified by reading the code.
- The records named govern the pointer press and the key press with no owner decision needed: verified against the current records.
- Cause: verified (the link carries its own pressable marker and pressed arm).
- The six change bullets (owner module, controller redirect, row-side override, the row's mark, the record path, the verification row): verified file by file.
- Tests: six new row cases, three controller cases and a new Chromium spec: verified by reading; the jsdom cases run and pass here; the Chromium spec has not run in CI.
- Release note: verified.
- Red first: the jsdom half reproduced here on the base; the browser half is reported and matches a base probe here.
- Regression spec, the full 176-file run, the mutation check, identity and lint tests, TypeScript, ESLint, Prettier and the knowledge check: reported; a 44-file subset, the core typecheck, ESLint on the changed files and the knowledge check pass here.
- Writing rubric results for the two record lines: verified.
- First-load figures: reported; measured here within 2 bytes of them, all under 0.3 KB.
- Scope, no public API change: verified (generated surface diff, 0 rows).
- Overlap with the two sibling pull requests: verified (the open sibling touches cards and thumbnails, no row file).
Files:
.changeset/item-delegated-control-press-paints-row.md: clearapps/storybook/stories/NestedControlPress.stories.tsx: cleardocs/architecture/press-feedback.md: cleardocs/specs/components/Item/Item.spec.md: clearpackages/core/src/Item/Item.nestedPress.test.tsx: clearpackages/core/src/Item/Item.tsx: clearpackages/core/src/__tests__/ItemDelegatedPress.a11y.chromium.spec.ts: clearpackages/core/src/hooks/useClickableContainer.ts: clearpackages/core/src/privateAttributes/pressDelegate.stylex.ts: clearpackages/core/src/utils/pressFeedback.test.ts: clearpackages/core/src/utils/pressFeedback.ts: clear
|
/approve-spec e709b8f |
Primary intent
An enabled
Itemrow that delegates (interactiveRef) to an enabled control that is itself a pressable surface, such as an AstryxLink, takes that control's press: a finger or pen press paints the row instead of the control, and the control's own:activeoverlay turns off for that press (a mouse, a pen, or a finger on a touch screen whose primary pointer is fine), so the press shows the row's press once.Builds on #12231 (merged as 8c5743e): this branch has taken that merge and
main, and targetsmain.User impact
Link(or another enabled control that is itself a pressable surface) in an enabled row with a mouse or a pen: the row shows one pressed fill. Before, a second, square-cornered band sat over theLink's box (measured in real Chromium: theLink's computed background wasrgba(0, 0, 0, 0.1)during the press; now it's clear).Link's box lit, because the press controller paints the innermost pressable surface.architecture:press-feedbackINV7; a mouse or pen press on a reorderable row's Reorder handle paints the row,component:ItemFR9).architecture:press-feedbackINV5 says ("a key press … paints its press").Linkrendered as a button keepspointer-events: autoinside the row'spointer-events: none, so it still paints its press). Under a finger, a disabled delegatedButtonpaints nothing and doesn't light the row.CheckboxInputorSwitch) still takes a finger's press itself. A delegatedButtonstill shows its own press scale under a mouse; only the overlay is turned off. A disabled delegatedLinkrenders without a press marker, so a finger still lights the row around it, as on the base. Under a mouse, or a pen on a fine primary pointer, a press on a disabled delegated control still lights the row through the row's:activepaint, as on the base.Link's press withxstylecan drop that override.Records
architecture:press-feedbackINV7 ("a press on a row's … delegated control … paints the row or card, never a control inside it") andcomponent:ItemFR9 govern pointer presses on a delegated control.Cause
architecture:press-feedbackINV7 andcomponent:ItemFR9 say a press on a row's delegated control paints the row, never a control inside it. A delegatedLinkcarries its own pressable marker and its own:activepress arm. So a mouse painted both, and the controller's innermost-surface rule gave a finger's press to theLink.Change
packages/core/src/privateAttributes/pressDelegate.stylex.ts(new): owner of a privatedata-astryx-press-delegate(architecture:public-component-apiINV23, the same shape aspressHeld.stylex.ts).setPressDelegatemarks or frees a control, andpressDelegateRowreturns the pressable row around a marked control.packages/core/src/utils/pressFeedback.ts:surfaceAtgives a pointer's press on a marked control to its row: a finger, a pen, and a mouse where:activeis dropped. A disabled or held control is checked first, so it takes the press and paints nothing, and a disabled or held row paints nothing either.packages/core/src/hooks/useClickableContainer.ts: a new internaldelegatePressToRow(control)sets the mark and returns the cleanup.cancelNestedPress, the row's pointerdown handler, writes fix(press): in ClickableCard, SelectableCard, Item, TreeList and Token, a mouse or pen press on a nested control that does not run the container paints only the control (except the List Reorder handle) #12231's--_nested-press-paint: var(--_nested-press-rest)override on a marked control for any pointer's press on it (it matters where:activepaints: a mouse, a pen, or a finger where the primary pointer is fine), and clears it onpointerupandpointercancel. So that press's:activepaint gives way on the control and the row's own:activepaint shows, while a key press on the control (Space) keeps the control's own:activepaint where the primary pointer is fine.packages/core/src/Item/Item.tsx: a layout effect calls it oninteractiveRef.currentwhile the row takes presses (a delegate row, not disabled). It runs on each commit and cleans up, so it follows the ref to a new node and clears on unmount. It sits beside the row'saria-currentsync on the same caller node.docs/architecture/press-feedback.md:applies_tolists the new owner.docs/specs/components/Item/Item.spec.md: one more FR9 Verification row naming the new checks, fitted to the existing columns.Item.nestedPress.test.tsx: six cases: a finger on a delegatedLinkpaints the row and not theLink; theLink's:activepaint is turned off for a mouse press and for a finger press, and back on at release; a Space press on a delegatedButtonleaves the button its paint where the primary pointer is fine; a disabled row writes no override on itsLink(Item's disabled style also turns pointer events off, so in a browser neither paints); a finger on a disabled delegatedButtonin an enabled row paints nothing.pressFeedback.test.ts: three controller cases on a marked control: a finger paints the row; a disabled control paints nothing and doesn't light the row; a Space press on a focused delegated button paints the button, not the row, where the controller paints Space presses.ItemDelegatedPress.a11y.chromium.spec.ts(new): on a new delegating-row case in the Nested Control Press story. A mouse press leaves theLink's computed paint clear while the row paints, and a finger press marks the row and not theLink..changeset/item-delegated-control-press-paints-row.md:[fix]patch.Evidence
Linkcases (finger, mouse, fine-pointer finger) fail: theLinktakes the finger's press, and it has no override. The disabled case passes. Both browser cases fail: theLinkpaintsrgba(0, 0, 0, 0.1), and the row has no press. With this change, all pass.NestedControlPress.a11y.chromium.spec.ts(21 cases) passes on both.vitest runover Item, hooks, utils, Link, Button, List, CheckboxList, RadioList andnestedControlPress.test.tsx: 176 files, 3,760 tests.no-raw-private-attributetests.check:knowledge.Writing rubric results
docs/specs/components/Item/Item.spec.md(one FR9 Verification row) anddocs/architecture/press-feedback.md(applies_to):First load
The shared press modules grow (
architecture:component-import-boundariesINV10).pnpm size:pages, basemainagainst 8a2531b: docs +49 B, form +64 B, menu +131 B, table +158 B gzip, each within 0.3 KB.Scope
Item's delegated-control press, the press controller's surface choice, one private attribute owner, one record path and one Verification row, the story and tests. No public API change.
Overlap checked: #12231, #12348 (this builds on #12231, now merged, and adds Item's delegated-control press on top of #12231's nested-press override; #12348 is a sibling stack on #12231 that changes the card and Thumbnail press, not Item's delegate path)
Owner: @cixzhang. Land path: a maintainer's consistency check at this head, code review, CI with
ci:run-a11y, merge.