LearnNewsExamplesConnect
Frontmatter
assigneesneo-opus-ada
createdAtNov 18, 2026, 5:18 PM
updatedAtNov 18, 2026, 7:23 PM
githubUrlhttps://github.com/neomjs/neo/issues/21366
authorneo-opus-ada
commentsCount0
parentIssue21329
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtNov 18, 2026, 7:23 PM

A chip list paints a square list-item surface behind each chip

neo-opus-ada
neo-opus-ada commented on Nov 18, 2026, 5:18 PM

Sub of #21329. Owned by @neo-opus-ada for the Engine 14 cut (Mon 23 Nov), so no curated labels: the chip tiles in neomjs/pages#109 wait on it.

Context

Found while capturing the chip field's tile after PR #21352 merged. On neo-theme-dark, each chip in examples/form/field/chip sits on a square slate box whose corners show around the pill's rounded border. The list-chip tile already in neomjs/pages#109 shows the same boxes behind all six chips. The standalone component-chip tile has none: it is an outlined pill on the stage.

Measured on dev 557d2480d6 in devmode through the workbench's theme switch, on the chip field's first chip:

Theme List item background Field background Item radius Chip radius, fill
neo-theme-dark rgb(51, 52, 61) rgb(43, 43, 43) 0 15 px, transparent
neo-theme-light rgb(255, 255, 255) rgb(255, 255, 255) 0 15 px, transparent
neo-theme-neo-light rgb(255, 255, 255) rgb(255, 255, 255) 0 15 px, transparent

The light themes hide the surface because it is white on a white field. Any theme whose item surface differs from the field shows it.

Operator ruling (2026-11-18, on PR #21369)

The first fix, a transparent rest surface (PR #21369 at 889f26674b), passed review and was then rejected by @tobiu:

  • Chips need a fill for contrast, above all inside a chip field. The dark fill was right; its square corners were the defect. The exact color stays open to challenge.
  • Text in a chip without a glyph touches the pill's left border.
  • The chip list's 1px solid #ddd frame reads near-white on a dark theme.

The Problem

list.Chip renders each chip, a component.Chip with a 15 px radius, a 1 px border and no fill, inside a list item. The list paints that item with the theme's item surface, which is square, and its hover and active surfaces are square too. A chip has no fill of its own, so on a light theme (white item surface) it is an outline only. Its text has no spacing of its own: the glyph and the close button carry 7.5 px margins, so a glyph-less chip's text starts at the border. The chip list frames itself with a hard-coded 1px solid #ddd.

The Architectural Reality

  • resources/css/src/list/Base.css: .neo-list .neo-list-item takes background-color: var(--list-item-background-color), with -hover, -active and -selected variants.
  • The neo themes declare those variables on :where(.neo-theme-*) (zero specificity), the classic themes on :root .neo-theme-* (0,2,0). A workbench's example component carries its own theme class, so a classic theme's declaration out-ranks one set on .neo-chip-list itself. The item carries no theme class.
  • resources/css/src/list/Chip.css already paints a selected chip's fill on the chip (background-color: inherit !important on the item).
  • The item and its chip share one box (.neo-chip-list .neo-list-item has no padding). --chip-border-radius is 15px in all four themes.
  • component.Chip renders glyph, text and close button, and drops the glyph (removeDom) without an iconCls.
  • The chip field's value list is a list.Chip with border: 0 (resources/css/src/form/field/Chip.css), so a frame change leaves the field alone.
  • Every other list frames itself through --list-container-border: 0 on theme-light, none on both neo themes, 1px solid #282829 on theme-dark.

The Fix

  • Each theme's component/Chip.css gains --chip-background-color: #33343d on theme-dark and var(--sem-color-bg-neutral-highlighted) on theme-neo-dark (the dark item surfaces the operator kept), #eef0f3 on theme-light, var(--gray-100) on theme-neo-light. .neo-chip fills itself with it.
  • In a chip list, the item declares --list-item-background-color: var(--chip-background-color) and takes border-radius: var(--chip-border-radius), and the chip stays clear: the fill sits inside the pill, and the list's hover, active and selected surfaces still reach it.
  • .neo-chip-text:first-child and :last-child keep the glyph's and the close button's 7.5 px from the border.
  • .neo-chip-list takes border: var(--list-container-border) instead of 1px solid #ddd.

Acceptance Criteria

  • AC-1: In all four themes, a chip list's chip at rest shows --chip-background-color inside the pill: the item's background equals the token, its radius equals the chip's, and the chip itself is clear.
  • AC-2: Hover changes the pill's surface, and a selected chip keeps its selected fill.
  • AC-3: A chip without a glyph keeps at least 7 px between its border and its text.
  • AC-4: The chip list's frame is the theme's --list-container-border, never the #ddd literal.
  • AC-5: A browser spec covers AC-1 to AC-4 in all four themes, with the list carrying its own theme class: red on base, green at head.
  • AC-6: Post-merge: the form-field-chip and list-chip tiles are recaptured on the fix and land in neomjs/pages#109.

Out of Scope

  • The chip field wrapping its triggers onto a row of their own once its chips fill the first row: #21381. On dev the 300 px example's first row is already full (its input sits at its 80 px minimum), so the text inset pushes it over.
  • theme-cyberpunk: it ships no chip sheet.

Avoided Traps

  • A transparent rest surface, the first fix: rejected, a chip needs a fill for contrast.
  • Declaring the item token on .neo-chip-list: a classic theme class on the list element out-ranks it.
  • Leaving the chip's own fill on inside the list: it would cover the item's hover and active surfaces.
  • !important overrides: none added.

Related

Live latest-open + closed sweep: checked latest 20 open plus open and closed search ("chip list item background", "chip list background"; Out of Scope of #21349 read) at 2026-11-18T16:17Z; no equivalent or prior exclusion found. Backlog: 84 open (red), folded under #21329. A2A in-flight claim sweep: last 30 messages, no chip list claim. MC sweep: "chip list item background square behind rounded chip dark theme list surface", "neo-chip-list border #ddd hardcoded color list.Chip theme", "chips in the chip field show a square box behind each pill on the dark theme"; 15 results, no prior decision found. Own-assignment sweep: 8 open, none overlapping (#21334, #21333 bodies read).

Origin Session ID: 700d27bb-8c8b-4bfa-b85e-82e089eac915