Commit 8a18fb6
authored
fix: rely on parent flex gap for Field helper-message spacing (#5080)
* fix: align helper-message spacing token across all Field-based inputs
Switch .eds-field__helper-message from --eds-spacing-vertical-3xs to
--eds-selectable-space-horizontal so all Field-based inputs (TextField,
Select, Search, Autocomplete, Checkbox, Radio, Switch) use the same
density-aware token as TextArea's .helper-row.
Closes #5042
* fix: remove redundant helper-message margin overrides
The calc resolves to 0 (--eds-selectable-space-horizontal equals
--eds-generic-gap-vertical), so the overrides on .eds-field__helper-message
in field.css and on .helper-row + .eds-field__helper-message in textarea.css
are no-ops. The helper-message already gets the correct 8px gap from the
parent .eds-field flex gap.
Addresses PR review feedback on #5080.1 parent 686fc92 commit 8a18fb6
2 files changed
Lines changed: 1 addition & 13 deletions
Lines changed: 1 addition & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | 44 | | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | 65 | | |
71 | 66 | | |
72 | 67 | | |
| |||
Lines changed: 0 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | 42 | | |
50 | 43 | | |
51 | 44 | | |
| |||
0 commit comments