-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Polish global styles preview. #35244
Conversation
Size Change: 0 B Total Size: 1.07 MB ℹ️ View Unchanged
|
@@ -25,7 +25,7 @@ export const StylePreview = () => { | |||
style={ { background: backgroundColor } } | |||
> | |||
<HStack spacing={ 5 }> | |||
<div> | |||
<div style={ { lineHeight: '1' } }> |
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.
Can we apply it in CSS maybe to this class edit-site-global-styles-preview
or by adding another class here edit-site-global-styles-preview__text
?
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.
We can, yes, I'm a bit confused at myself for adding it here in the first place. Good call.
Description
Definitely the department of subtleties. The new Global Styles preview card had an inherited line height, making it look vertially offset in some situations:
This PR just adds an explicit line height so it doesn't inherit it from a random context, therefore vertically centering it:
How has this been tested?
Open the site editor, view the global styles sidebar.
Checklist:
*.native.js
files for terms that need renaming or removal).