Repository navigation
Conversation
Not for merge. A preview for one design pick on a List with dividers: how the dividers around a hovered or pressed row look. A story with pressable rows and a story-only Dividers toolbar item switch between two treatments and main. A hides the dividers above and below the tinted row. B keeps both visible over the tint. The toolbar item and the story's CSS never ship, and no component code changes.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
PR Analysis Report
Generated by PR Enrichment workflow | View current CI run |
There was a problem hiding this comment.
This preview does what it says: the story renders A, B and main as described, and the light-mode contrasts and dark press numbers in the description reproduce in Chromium. It is marked not for merge, so the next step is a pick between A, B and main. Any engineering owner can record it on this pull request, the author included.
What the pick has to settle:
- Under a touch press,
component:ListFR11 and DEC-6 keep a pressed row's dividers drawn at their resting colour. A hides them and B draws them darker over the tint, so picking A or B also means amending FR11 and DEC-6 in a spec change (approved with/approve-spec <full head SHA>on that change) before List's code changes. - No current record covers the dividers next to a hover or mouse-press tint, and either treatment changes desktop paint, so that half needs an owner decision as well.
One note for whoever builds the pick: the story's touch rules also match the press controller's fading value. So A's hidden dividers and B's tint strips stay at full strength through the release, then snap back when it ends. A shipped version should fade them with the press layer.
[Automated review]
| // the row's border. | ||
| const TINTED_HOVER = 'li:not([aria-disabled="true"]):hover'; | ||
| const TINTED_ACTIVE = 'li:not([aria-disabled="true"]):active'; | ||
| const TINTED_TOUCH = 'li[data-astryx-press]'; |
There was a problem hiding this comment.
Non-blocking, for the implementation that follows the pick: li[data-astryx-press] also matches the controller's fading value. During the release the row's press layer fades to opacity 0, but B's strips stay at the full pressed tint and A's dividers stay hidden. When the attribute clears, they jump back. A shipped treatment should ride the release fade (FR11: "its release fades on the theme's exit motion tokens").
Closed, not for merge: the design owner picked B: both dividers stay visible over a highlighted row. #10280 builds it.
A preview for one design pick. Not for merge; it closes after the pick.
On a List with
hasDividers, a hovered or pressed row's tint is close to the divider's color, so the divider above the row merges into the tint. Under a finger both dividers merge, because the press layer stops at the row's border.The story Core/List › Dividers around a highlighted row (try-it) has pressable rows and a story-only Dividers toolbar item:
The toolbar item and the story's CSS exist only for this comparison and never ship. No component code changes.
Measured
Chromium, 402 px wide at 1×, the third of five rows. Each number is a divider's contrast against the tint next to it, above / below the row.
In A, the line above reads as the row above it and the line below as the tint (1.00 each). In B, the lines on both edges of the tint are darker than any line at rest (211 on a 229 press tint, 1.50 against white).
Dark theme: main's divider above is 1.18 on hover and 1.00 on a press, where the press tint equals the divider's color, and under a finger both are 1.00. A hides both, and B keeps 1.35 to 1.38.