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
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
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 inexamples/form/field/chipsits on a square slate box whose corners show around the pill's rounded border. Thelist-chiptile already in neomjs/pages#109 shows the same boxes behind all six chips. The standalonecomponent-chiptile has none: it is an outlined pill on the stage.Measured on
dev557d2480d6in devmode through the workbench's theme switch, on the chip field's first chip:neo-theme-darkrgb(51, 52, 61)rgb(43, 43, 43)neo-theme-lightrgb(255, 255, 255)rgb(255, 255, 255)neo-theme-neo-lightrgb(255, 255, 255)rgb(255, 255, 255)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:1px solid #dddframe reads near-white on a dark theme.The Problem
list.Chiprenders each chip, acomponent.Chipwith 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-coded1px solid #ddd.The Architectural Reality
resources/css/src/list/Base.css:.neo-list .neo-list-itemtakesbackground-color: var(--list-item-background-color), with-hover,-activeand-selectedvariants.: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-listitself. The item carries no theme class.resources/css/src/list/Chip.cssalready paints a selected chip's fill on the chip (background-color: inherit !importanton the item)..neo-chip-list .neo-list-itemhas no padding).--chip-border-radiusis15pxin all four themes.component.Chiprenders glyph, text and close button, and drops the glyph (removeDom) without aniconCls.list.Chipwithborder: 0(resources/css/src/form/field/Chip.css), so a frame change leaves the field alone.--list-container-border:0ontheme-light,noneon both neo themes,1px solid #282829ontheme-dark.The Fix
component/Chip.cssgains--chip-background-color:#33343dontheme-darkandvar(--sem-color-bg-neutral-highlighted)ontheme-neo-dark(the dark item surfaces the operator kept),#eef0f3ontheme-light,var(--gray-100)ontheme-neo-light..neo-chipfills itself with it.--list-item-background-color: var(--chip-background-color)and takesborder-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-childand:last-childkeep the glyph's and the close button's 7.5 px from the border..neo-chip-listtakesborder: var(--list-container-border)instead of1px solid #ddd.Acceptance Criteria
--chip-background-colorinside the pill: the item's background equals the token, its radius equals the chip's, and the chip itself is clear.--list-container-border, never the#dddliteral.form-field-chipandlist-chiptiles are recaptured on the fix and land in neomjs/pages#109.Out of Scope
devthe 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
.neo-chip-list: a classic theme class on the list element out-ranks it.!importantoverrides: 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
#21349read) 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,#21333bodies read).Origin Session ID: 700d27bb-8c8b-4bfa-b85e-82e089eac915