Skip to content

[try-it] List dividers around a highlighted row (not for merge) - #10265

Closed
vjeux wants to merge 1 commit into
meta:mainfrom
vjeux:uikit/c06-list-dividers-tryit
Closed

vjeux wants to merge 1 commit into
meta:mainfrom
vjeux:uikit/c06-list-dividers-tryit

Conversation

@vjeux

@vjeux vjeux commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

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:

  • A: the dividers above and below a highlighted row hide, as UITableView hides a highlighted cell's separators. Under a finger the press layer also covers where the row's divider was.
  • B: every divider stays visible next to the tint. The divider above is drawn over the tint, as the row's own divider already is, and under a finger the row's own divider is too.
  • Main today, for comparison.

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.

Light theme Main A B
Rest (against white) 1.19 / 1.19 1.19 / 1.19 1.19 / 1.19
Mouse hover 1.06 / 1.19 hidden 1.19 / 1.19
Mouse press 1.06 / 1.19 hidden 1.19 / 1.19
Touch press 1.06 / 1.06 hidden 1.19 / 1.19

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.

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

vercel Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Nov 6, 2026 11:39am UTC

Request Review

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

astracat-bot Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
❓ Needs maintainer input (for maintainers only) Nov 6, 2026, 11:49 AM UTC

@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

PR Analysis Report

Current run: The current CI run concluded skipped. Current analysis is unavailable.


Generated by PR Enrichment workflow | View current CI run

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This 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:List FR11 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]';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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").

This branch was successfully deployed

1 active deployment
Preview — 6f11c99f Deployed Nov 6, 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant