You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 78c6ca5
Browse filesBrowse the repository at this point in the historyBrowse files
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)
* docs(architecture): press feedback has one engine and three recipes
* docs(architecture): press feedback review fixes (per-recipe tracking, first-load scope, INV9)
* docs(architecture): press feedback states the stretched-control gap on main
* docs(architecture): press feedback scopes INV7 to non-activating presses and states INV9 as its own rule
* docs(architecture): a stretched control keeps its press paint on its own box
* docs(architecture): press feedback scopes drift rules to untracked presses and INV7's failure signal
* docs(architecture): press feedback keeps interaction-modality INV13's group and menu tracking owners
* docs(architecture): the surface under the finger paints (owner rule); cards stop painting for nested mouse presses
* docs(architecture): press feedback names who writes a group press, and scopes INV4's signal to one profile
* docs(architecture): the menu profile names useMenuPress's own modules
* Merge origin/main
* docs: the surface under the finger paints for every pointer in Item, TreeList, Token and the cards; gaps stated
* docs: verification rows cover every pointer for nested presses in Item, TreeList and Token
* docs: press feedback timing goes through the press-feedback engine (react-component-runtime INV13 reconciled)
* docs(press-feedback): name the pen and CheckboxList rows in the nested-press gaps; list only tested cases
* Merge remote-tracking branch 'origin/main' into specs/press-feedback-recipes
* docs(press-feedback): keep the tested CheckboxList, RadioList and Token Remove cases; scope each gap to what is untested
* docs(Token): name the untested end-content press in the FR6 gap
* docs(cards): a mouse press keeps desktop timing; where any press paints follows the every-pointer rule
* docs(press-feedback): state the owner's paint rule in neutral words
* Merge remote-tracking branch 'origin/main' into l0/container-nested-press
* docs(press-feedback): Decider line with the decision time
* fix(press): a press on a control inside a card, row or token paints only 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.
* Merge remote-tracking branch 'origin/specs/press-feedback-recipes' into l0/container-nested-press
* docs(press-feedback): a Space key press paints until release; Enter, which acts on key down, paints none
* Merge remote-tracking branch 'origin/main' into l0/container-nested-press
# Conflicts:
# docs/architecture/press-feedback.md
* docs(ClickableCard, SelectableCard, Item, TreeList, Token): the nested-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.
* docs(press-feedback): record that a held Space on a container's own action 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.
* docs(useClickableContainer, Token): the onPointerDown docs and Token's gap match the shipped nested press
* Merge commit 'refs/l1/main-now56' into l1-12231
# 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
* test: the TreeList default-render snapshot takes the shared overlay's new classes
* Merge commit 'refs/l1/main-now57' into l1-12231
# Conflicts:
# docs/specs/components/Item/Item.spec.md
* fix: the nested-press properties are private runtime plumbing; release note and comment wording
* Merge main; narrow the nested-press claims to a mouse and a pen; name the rows that keep their press
* test: regenerate the TreeList chevron snapshot after the main merge
* fix(Item): a press on a read-only input in a row paints no row press, as its click runs no row
* docs: the card, TreeList and Token records name the fine-pointer finger gap
* docs: the release note names the Item row finger change; wrap the cancelNestedPress comment
* docs: scope the Item row press note to coarse-pointer fingers; drop a status sentence
* chore: re-run review
* docs(TreeList): drop two build-status phrases from rows this change re-pads
* fix(Item): a press on the control a row delegates to paints the row once
A delegated Link is a pressable surface of its own, so a mouse press painted
the row and the Link, and a finger press painted only the Link. The row now
marks its delegated control: the press controller paints the row for it, and
the control's :active paint gives way to the row's.
* docs(Item): FR9 names the delegated-Link press checks; the effect names its external node
* chore(press): link the press-delegate owner to its record; drop record citations from comments
* chore: changeset for the delegated-control press
* fix(press): a disabled delegated control paints nothing; narrow the changeset to pressable-surface delegates; test the Space path
* fix(press): a key press on a delegated control stays on the control
* Merge remote-tracking branch 'origin/main' into l0/container-nested-press
# Conflicts:
# docs/specs/components/SelectableCard/SelectableCard.spec.md
# docs/specs/components/Token/Token.spec.md
* Merge branch 'l0/container-nested-press' into fix/item-delegate-press-row-only
* Merge remote-tracking branch 'origin/main' into l0/container-nested-press
# Conflicts:
# docs/architecture/press-feedback.md
# docs/specs/components/ClickableCard/ClickableCard.spec.md
# docs/specs/components/Item/Item.spec.md
# docs/specs/components/SelectableCard/SelectableCard.spec.md
# docs/specs/components/Token/Token.spec.md
* docs(press): records and changeset name the Reorder-handle gap and the Item row under a link or button
* chore(changeset): bound the Item-under-link sentence to content beside the row's label
* docs(press): Item-row sentences bound to rows with their own action; Token's click-and-press gap names any pointer
* docs(press): bound INV7 closure to the five containers; Thumbnail and SideNavItem gaps recorded; hook doc names every pointer
* fix(press): the nested-press rule holds in another document (isElement); SideNavItem gap names its expand/collapse button
* fix(press): TreeList's own-Chevron test holds in another document (isNode); records name the middle-button gap; Token gap names its pointers
* fix(press): a mouse or pen press with any button on a nested control turns off the container's press paint
* Merge commit 'd8432ac9a037f1da6cef3bfd9d5ea4c0f8242b77' into fix/item-delegate-press-row-only
# Conflicts:
# docs/specs/components/Item/Item.spec.md
# packages/core/src/Item/Item.nestedPress.test.tsx
# packages/core/src/hooks/useClickableContainer.ts
* Merge remote-tracking branch 'origin/main' into fix/item-delegate-press-row-only
# Conflicts:
# apps/storybook/stories/NestedControlPress.stories.tsx
# docs/specs/components/Item/Item.spec.md
# packages/core/src/hooks/useClickableContainer.ts
* fix(Item): a delegated control's own press paint gives way only during a mouse or pen press on it, so a Space press keeps its tint
* fix(Item): a finger's press on a delegated control also turns off the control's own :active paint, for a touch screen whose primary pointer is fine
* test(Item): the mouse-press case name drops 'only'; the finger case below covers the same override
[fix] An `Item` row that delegates with `interactiveRef` to a control that is itself a pressable surface, such as a `Link`, now takes that control's press: a finger or pen press paints the row instead of the control, and the control's own mouse press overlay turns off, so a mouse press shows the row's press once. A disabled row, or a disabled control, keeps the press as before.
Copy file name to clipboardExpand all lines: docs/specs/components/Item/Item.spec.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -200,6 +200,7 @@ Consumer migration instructions belong in consumer docs and release notes.
200
200
| FR2–FR6 | Real-Chromium geometry assertions over the Item alignment stories | Wrapped label with dot and age; avatar; densities; RTL; theme | A slot center off the first line center by more than 0.5px, or a clipped slot, fails. | `audit:Item/layout` |
201
201
| FR8 | `List.test.tsx`, `RadioList.test.tsx`, `CheckboxList.test.tsx` forwarding cases | Each composing row with `align="first-line"` | A row whose Item root lacks `data-align="first-line"` fails. | `audit:Item/api` |
202
202
| FR9 | `nestedTouchPress.adopters.test.tsx`; `Item.nestedPress.test.tsx`; the nested-control cases in `CheckboxList.test.tsx`, `RadioList.test.tsx` and `useClickableContainer.test.tsx`; `nestedControlPress.test.tsx`; `NestedControlPress.a11y.chromium.spec.ts`; `Item.test.tsx` "clicks that belong to something else", the form-control-label case, and the List link-row portal case; `useClickableContainer.test.tsx` "a press on a form control's label" | A finger on the delegated control; a finger on another control in the row; a mouse and a pen on another control in a CheckboxList or RadioList row; a finger, a pen and a mouse on another control in an `onClick`, `href` and delegated row; a mouse on a nested control in a link-root row, which paints the row; a click on a role-based control, on a form control's label, or in portaled content | A row painted for a press on another control, or not painted for a press on its delegated control, or an `onClick` or `href` row with no parent-supplied `role` and no link root that runs its `onClick` or follows its link for a click on another control or in portaled content, fails. Gap: no test covers a press on a nested control in a row with a parent-supplied role. Gap: on a device whose primary pointer is fine, a finger press on another control in the row still paints the row (`architecture:press-feedback` INV7 gap). | `audit:Item/behavior` |
203
+
| FR9 | `Item.nestedPress.test.tsx` delegated-Link cases; `ItemDelegatedPress.a11y.chromium.spec.ts` | A mouse and a finger on a delegated control that is itself a pressable surface (a Link); a disabled row around one | The delegated control painting a press of its own, the row not painting for a press on it, or a disabled row taking its press, fails. | `audit:Item/behavior` |
203
204
| FR10 | `Item.test.tsx` "reflects highlighted, selected, and disabled on the item theme target" | Plain, highlighted only, selected only, disabled only, and all three together | A missing attribute, or an attribute left on a row whose state does not hold, fails. | `audit:Item/theming` |
204
205
| AR1, AR2 | Accessibility-tree snapshot of a `first-line` row against a `center` row | Plain and option rows | Any difference in name, role, description, or order fails. | `audit:Item/a11y` |
205
206
| PR1 | Source review of Item's alignment styles | All values | A ref, observer, or Effect added for alignment fails review. | `audit:Item/layout` |
0 commit comments