Conversation
| export const VisualLabelWrapper = styled.div` | ||
| // Makes the inline label be the correct height, equivalent to setting line-height: 0 | ||
| display: flex; | ||
| `; |
There was a problem hiding this comment.
This is a tiny fix we need on the ToggleGroupControl label that causes a 1px height discrepancy with the other components, due to block/inline differences 😭 We might need to rethink the BaseControl.VisualLabel styles if this happens a lot.
CleanShot.2022-08-17.at.23.40.23.mp4
There was a problem hiding this comment.
Does it work if you remove VisualLabelWrapper altogether and put VisualLabel and RadioGroup into a HStack? I think that's what I did for FontSizePicker.
There was a problem hiding this comment.
In terms of the label height, yes, anything that makes it a flex child will do. In this case the main RadioGroup defaults to an inline-flex for some reason, so we'll have to look into that more before we can use a cleaner solution like the HStack you mention. (Ideally we just use the default BaseControl features for the label rendering, not this custom thing.)
|
Size Change: -23 B (0%) Total Size: 1.24 MB
ℹ️ View Unchanged
|
fed9e04 to
18e427a
Compare


Based on #43328
Part of #34345 #41973
What?
Increases the heights of the components in block supports Typography tools to the new 40px heights.
Why?
This is the new design direction.
How?
Using the
sizeprops that have been implemented in the underlying components.Out of scope for this PR
Testing Instructions
npm run devScreenshots or screencast