Commit 49b97ec
fix(ui-flex): resolve general.* spacing tokens for the gap prop
Flex v2 resolved `gap` with getShorthandPropValue, which only handles the
flat legacy keyword scale. The current general.* tokens are nested
(sharedTokens.spacing.general.spaceXl), so `gap="general.spaceXl"` was not
found and silently fell back to `0` (no gap). Resolve `gap` with
calcSpacingFromShorthand instead -- the same helper View uses for
margin/padding -- which supports both the general.* dot-path and the legacy
keyword scale.
INSTUI-5125
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent ecd9aeb commit 49b97ec
1 file changed
Lines changed: 5 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | 90 | | |
99 | 91 | | |
100 | 92 | | |
| |||
104 | 96 | | |
105 | 97 | | |
106 | 98 | | |
107 | | - | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
108 | 103 | | |
109 | 104 | | |
110 | 105 | | |
| |||
0 commit comments