Please comment to claim before starting; check current assignees and linked PRs.
Context
Surfaced during #21178 (examples/grid/nestedRecordFields/EditUserDialog.mjs, which instructs: "If the narrow Country field is an engine defect, file it and work around it here"). Inside a Neo.container.Base or Neo.dialog.Base bodyContainer where fields carry no explicit width, Neo.form.field.Text and Neo.form.field.Date render a normal-width input (~150 px in align: 'start', full container width in align: 'stretch'), while Neo.form.field.ComboBox and subclasses (Country, Chip, Color) collapse their input box when labelPosition is 'left' (the TextField default) so the value text ("Germany") overlaps the clear and picker triggers or disappears completely.
The Problem
Two coupled engine defaults interact to crush un-sized ComboBox subclasses:
ComboBox (typeAhead: true by default) wraps the input and typeahead overlay in .neo-input-field-wrapper and takes both <input> elements out of flow (position: absolute; inset: 0 in resources/css/src/form/field/ComboBox.css:2-9), leaving .neo-input-field-wrapper with zero intrinsic content width and only flex: 1 1 30px.
- To work around that collapsed intrinsic width in inline-label demos (
#6914), src/form/field/ComboBox.mjs:166 hardcoded width: 150 on ComboBox.config. Because Neo.form.field.Text defaults labelPosition to 'left' and labelWidth to 150, width: 150 caps the entire label + input + triggers box to 150 px (150 - 150 = 0 px remaining for the input wrapper), and its inline style="width: 150px" also prevents ComboBox, Country, Chip, and Color from stretching inside align: 'stretch' containers!
The Architectural Reality
resources/css/src/form/field/ComboBox.css:2-9: both .neo-textfield-input and .neo-typeahead-input use position: absolute; inset: 0.
src/form/field/ComboBox.mjs:161-166: width: 150 (#6914, "Default width to prevent rendering issues.") overrides Neo.component.Base's width: null.
resources/css/src/form/field/Text.css:403-410: .neo-input-wrapper { display: flex; flex: 1 1 1px; }.
- Subclass sweep (
get_class_hierarchy): Neo.form.field.Country, Neo.form.field.Chip, and Neo.form.field.Color all extend Neo.form.field.ComboBox without overriding width.
- Design authority:
src/form/field/ComboBox.mjs:38 (@extends Neo.form.field.Picker) — a ComboBox without an explicit width in the same vbox container as TextField / DateField is expected to size and stretch identically rather than collapsing onto its triggers.
The Fix
(Stage-2 Prescription checked at intake: resources/css/src/form/field/ComboBox.css + src/form/field/ComboBox.mjs — together own the concern; ComboBox.css restores intrinsic <input> sizing, retiring ComboBox.mjs's #6914 width: 150 workaround.)
- In
resources/css/src/form/field/ComboBox.css, keep .neo-textfield-input:not(.neo-typeahead-input) in normal flow inside .neo-input-field-wrapper (display: flex; flex: 1 1 auto; min-width: 0; position: relative on .neo-input-field-wrapper, position: relative; z-index: 1; min-width: 0 on the real input) while only .neo-typeahead-input uses position: absolute; inset: 0; pointer-events: none, and remove the obsolete width: 150 default in src/form/field/ComboBox.mjs so ComboBox and its subclasses inherit width: null like TextField and Picker. Rebuild themes (npm run build-themes -- -n -e dev -t all).
- Add a browser component spec in
test/playwright/component/form/field/ComboBox.spec.mjs mounting TextField, ComboBox (left and inline), and Country inside an align: 'start' Neo.container.Base (no explicit width) plus an explicitly constrained width: 120 ComboBox, asserting readable >= 120 px input widths matching TextField, zero trigger overlap, 1:1 typeahead overlay alignment, and clean 120 px shrink without overflow.
Acceptance Criteria
Out of Scope
- Changing
Neo.container.Panel's default bodyContainer alignment across all panels/dialogs.
- Renewing
examples/grid/nestedRecordFields (handled in #21178).
Avoided Traps
- Setting a rigid
min-width: 180px on .neo-combobox itself, which would break compact toolbar/header-filter comboboxes explicitly configured with width: 100 or width: 120 — keeping the real <input> in normal flow with min-width: 0 preserves shrinkability.
Related
Live latest-open + closed sweep: checked latest 20 open + open and closed search ("ComboBox width", "Country field narrow", "neo-input-field-wrapper"; read Out of Scope / Avoided Traps on #21389 and #21381) at 2026-11-19T20:16Z; no equivalent or prior exclusion found. Backlog: 70 open (red band), folded under #21329 (17 existing subs).
A2A in-flight claim sweep: last 30 messages across all read-states at 2026-11-19T20:16Z; no overlapping claim.
MC sweep: query_raw_memories("ComboBox Country field crushed narrow width triggers overlap input align start"), 5 results (#9051 inline-label padding history), no prior decision found.
Own-assignment sweep: 3 open (#21185, #21177, #21178); #21178 explicitly scopes filing this engine defect separately.
Structure-map: N/A (src/form/field/ + resources/css/src/form/field/).
Decision Record impact: none.
Origin Session ID: 095892f3-027f-47aa-8092-a13ae31f72ca
Retrieval Hint: "ComboBox CountryField narrow 30px width 150 position absolute neo-input-field-wrapper align start"
🧭 Maryam · @neo-gemini-maryam · Gemini 4 Carbon · Antigravity
Please comment to claim before starting; check current assignees and linked PRs.
Context
Surfaced during
#21178(examples/grid/nestedRecordFields/EditUserDialog.mjs, which instructs: "If the narrow Country field is an engine defect, file it and work around it here"). Inside aNeo.container.BaseorNeo.dialog.BasebodyContainerwhere fields carry no explicitwidth,Neo.form.field.TextandNeo.form.field.Daterender a normal-width input (~150 pxinalign: 'start', full container width inalign: 'stretch'), whileNeo.form.field.ComboBoxand subclasses (Country,Chip,Color) collapse their input box whenlabelPositionis'left'(theTextFielddefault) so the value text ("Germany") overlaps the clear and picker triggers or disappears completely.The Problem
Two coupled engine defaults interact to crush un-sized
ComboBoxsubclasses:ComboBox(typeAhead: trueby default) wraps the input and typeahead overlay in.neo-input-field-wrapperand takes both<input>elements out of flow (position: absolute; inset: 0inresources/css/src/form/field/ComboBox.css:2-9), leaving.neo-input-field-wrapperwith zero intrinsic content width and onlyflex: 1 1 30px.#6914),src/form/field/ComboBox.mjs:166hardcodedwidth: 150onComboBox.config. BecauseNeo.form.field.TextdefaultslabelPositionto'left'andlabelWidthto150,width: 150caps the entirelabel + input + triggersbox to150 px(150 - 150 = 0 pxremaining for the input wrapper), and its inlinestyle="width: 150px"also preventsComboBox,Country,Chip, andColorfrom stretching insidealign: 'stretch'containers!The Architectural Reality
resources/css/src/form/field/ComboBox.css:2-9: both.neo-textfield-inputand.neo-typeahead-inputuseposition: absolute; inset: 0.src/form/field/ComboBox.mjs:161-166:width: 150(#6914,"Default width to prevent rendering issues.") overridesNeo.component.Base'swidth: null.resources/css/src/form/field/Text.css:403-410:.neo-input-wrapper { display: flex; flex: 1 1 1px; }.get_class_hierarchy):Neo.form.field.Country,Neo.form.field.Chip, andNeo.form.field.Colorall extendNeo.form.field.ComboBoxwithout overridingwidth.src/form/field/ComboBox.mjs:38(@extends Neo.form.field.Picker) — aComboBoxwithout an explicitwidthin the samevboxcontainer asTextField/DateFieldis expected to size and stretch identically rather than collapsing onto its triggers.The Fix
(Stage-2 Prescription checked at intake:
resources/css/src/form/field/ComboBox.css+src/form/field/ComboBox.mjs— together own the concern;ComboBox.cssrestores intrinsic<input>sizing, retiringComboBox.mjs's#6914width: 150workaround.)resources/css/src/form/field/ComboBox.css, keep.neo-textfield-input:not(.neo-typeahead-input)in normal flow inside.neo-input-field-wrapper(display: flex; flex: 1 1 auto; min-width: 0; position: relativeon.neo-input-field-wrapper,position: relative; z-index: 1; min-width: 0on the real input) while only.neo-typeahead-inputusesposition: absolute; inset: 0; pointer-events: none, and remove the obsoletewidth: 150default insrc/form/field/ComboBox.mjssoComboBoxand its subclasses inheritwidth: nulllikeTextFieldandPicker. Rebuild themes (npm run build-themes -- -n -e dev -t all).test/playwright/component/form/field/ComboBox.spec.mjsmountingTextField,ComboBox(leftandinline), andCountryinside analign: 'start'Neo.container.Base(no explicitwidth) plus an explicitly constrainedwidth: 120ComboBox, asserting readable>= 120 pxinput widths matchingTextField, zero trigger overlap, 1:1 typeahead overlay alignment, and clean120 pxshrink without overflow.Acceptance Criteria
align: 'start'Neo.container.Base(no explicitwidthon the container or field),Neo.form.field.ComboBox(leftandinlinelabels) andNeo.form.field.Countryrender an input area at least120 pxwide with zero overlap between text and triggers, and stretch cleanly insidealign: 'stretch'containers.widthoralign: 'stretch'constrains aComboBox(including grid cell editors and narrow toolbars), the field respects that width without horizontal overflow.npm run build-themes -- -n -e dev -t allsucceeds cleanly across all themes.devand passes at head.Out of Scope
Neo.container.Panel's defaultbodyContaineralignment across all panels/dialogs.examples/grid/nestedRecordFields(handled in #21178).Avoided Traps
min-width: 180pxon.neo-comboboxitself, which would break compact toolbar/header-filter comboboxes explicitly configured withwidth: 100orwidth: 120— keeping the real<input>in normal flow withmin-width: 0preserves shrinkability.Related
Live latest-open + closed sweep: checked latest 20 open + open and closed search ("ComboBox width", "Country field narrow", "neo-input-field-wrapper"; read Out of Scope / Avoided Traps on #21389 and #21381) at 2026-11-19T20:16Z; no equivalent or prior exclusion found. Backlog: 70 open (red band), folded under #21329 (17 existing subs). A2A in-flight claim sweep: last 30 messages across all read-states at 2026-11-19T20:16Z; no overlapping claim. MC sweep:
query_raw_memories("ComboBox Country field crushed narrow width triggers overlap input align start"), 5 results (#9051 inline-label padding history), no prior decision found. Own-assignment sweep: 3 open (#21185, #21177, #21178); #21178 explicitly scopes filing this engine defect separately. Structure-map: N/A (src/form/field/+resources/css/src/form/field/).Decision Record impact: none.
Origin Session ID: 095892f3-027f-47aa-8092-a13ae31f72ca Retrieval Hint: "ComboBox CountryField narrow 30px width 150 position absolute neo-input-field-wrapper align start"
🧭 Maryam ·
@neo-gemini-maryam· Gemini 4 Carbon · Antigravity