#1611 Settings: Store details boxes line up when only one field of a row has a hint #1711
This rule introduces a regression in a designed state: Name and Legal name both have hints and lined up before. When the Name validation message (.df-set-problem) renders, that field becomes taller than Legal name. Legal name's box then drops to the bottom of the taller row, so it no longer lines up with Name's box. The PR description admits this and leaves it unfixed. Please fix it rather than ship it: put the control and its message in one bottom-aligned wrapper, or reserve the message row, or align with subgrid (grid-template-rows: subgrid with each field spanning rows). Then show it in the error state.
Read both pieces (StoreInfoTab.tsx, settings.css), AGENTS.md and WORKFLOW.md §7. Ran no tests. The change is CSS and a class name only, so there is no tenancy, authorisation, secrets or layer impact. One change requested, inline on settings.css:72: the new bottom-alignment misaligns Name and Legal name whenever the Name validation message shows. They lined up before, so this is a regression. The description says the row alignment was not checked in a browser, and the error state is not covered at all.
Fixed in 3099c6f01. The boxes are no longer pushed to the bottom: each field takes four grid rows (label, hint, box, message) through subgrid, shared by the fields of a row. I rendered the Store details markup with the real CSS in headless Chrome: with Name's message and the next-order message showing, Name and Legal name have the same top and bottom (102-146), and so do every other row, at desktop and phone width. With no message, positions match dev's.
Nothing to change. Read both files (CSS-only fix plus two class additions); checked that every selector in the new rules (label, .df-set-label, .df-set-help, input, select, .df-set-pair, .df-phone, .df-set-problem) matches the real markup in StoreInfoTab.tsx and PhoneInput.tsx, and that the change is scoped to the two Store details grids. No tenancy, authorisation, data, layer or text changes. Ran no tests and did not render it.
mamataingole
Closes #1611
What was wrong
On Settings › Store details, a field without a hint line had its box right under its label, higher than its neighbour's: Contact email / Phone, and State / Country.
The fix
CSS only. In the two Store details grids (the two-column one and the three-column Time zone row), each field takes four rows of the grid (label, hint, box, message) through
subgrid. The fields of a grid row share those rows, so their boxes line up whether or not a hint is there, however a hint wraps, and while a validation message shows under Name or the next order number. A row's spacing is the same as before when no message shows.settings.css: new.df-set-grid--alignedrules.StoreInfoTab.tsx: the class on the two grids.Scoped to these grids because
.df-set-fieldis shared by the other Settings tabs, which are not in this card.Checks
settings.cssandphone.cssand the Store details markup. Compared withdev's CSS:- Before: Contact email's box is 18px lower than Phone's, and Country's lower than State's.
- After: every box in a row has the same top and bottom, at desktop width, at phone width (one column), and with both validation messages showing.
- With no message showing, every box and the grid's height sit at the same pixel positions as on
dev, except the two rows that were misaligned. At phone width the whole layout is identical.@dripfunnel/storebuild, typecheck, lint pass; tests: 1,360 pass, 4 files failed to start a worker under load (editor,studio,customers,imports) and pass on their own (304 tests). The second commit changes only CSS.🤖 Generated with Claude Code