Patch Changes
-
17f9158: fix(DST-1675): treat
collapsedas axis-less when resolving inset paddingresolveInsetAxesappended an axis suffix to every non-numeric inset token, includingcollapsed— the one token where an axis split is meaningless, since it means "no spacing" on both axes. So<Panel p="collapsed">resolved tovar(--spacing-collapsed-x)rather thanvar(--spacing-collapsed).That variable went undeclared until it was added to
@marigold/theme-rui, so the declaration was invalid at computed-value time andpaddingfell back to its initial value of0— the right answer for the wrong reason. The cost was that every theme implementing this API had to ship three variables that all mean0(--spacing-collapsed,-x,-y) to make one documented prop value work, with nothing to tell it so.collapsedis now recognised as axis-less and passed through unsuffixed, so a theme declares--spacing-collapsedonly. The same guard is applied to the deliberately-divergent copy of the axis logic inSelectList, which had the identical bug on itspprop. A newisAxislessTokenpredicate is exported from@marigold/systemso the concept has one home instead of being inlined at both call sites.isScaleis unchanged:collapsedstays non-numeric there, becausecreateWidthVar,createHeightVarandcreateSpacingVardepend on that classification.Theme:
--spacing-collapsed-xand--spacing-collapsed-yare removed from@marigold/theme-rui. They shipped intheme-rui6.0.0 stable but existed only to satisfy the suffix that is no longer generated — nothing else referenced them, and the documented token has always beencollapsed.