[Bug] Selector and MultiSelector calculate wrong size for compact preset.
Description
Selector.tsx fixes the trigger's line box at --spacing-5 (triggerContainer.lineHeight). sizeStyles then pads to the size token assuming the content is one --spacing-5 line tall:
paddingBlock: calc((--size-element-md - --spacing-5 - 2 * --border-width) / 2)
The chevron (and the status, start and option icons) in that row is sm, a fixed 1rem. When --spacing-5 is less than 1rem, the icon sets the row height at 16px, but the padding is still worked out for 10px. On Compact: 16 + 2×8 + 2 = 34px instead of 28px.
So you end up with controls at different sizes breaking the renderValue doc promise that "A one-line value measures exactly the size token, so the control still lines up with the Buttons and inputs beside it."
Reproduction
To reproduce place a Selector and MultiSelector beside a Button using the compact preset.
Astryx Version
0.6.3
Environment
No response
Source: facebook/astryx