-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upsize typography tools #43331
Upsize typography tools #43331
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
size
props that have been implemented in the underlying components.Out of scope for this PR
Testing Instructions
npm run dev
Screenshots or screencast