-
Notifications
You must be signed in to change notification settings - Fork 8.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
[ML] Fixes to text spacings in data visualizer cards #29438
[ML] Fixes to text spacings in data visualizer cards #29438
Conversation
Pinging @elastic/ml-ui |
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.
LGTM
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.
LGTM
💚 Build Succeeded |
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.
LGTM ⚡️
@@ -1,9 +1,10 @@ | |||
.ml-field-title-bar { | |||
color: $euiColorEmptyShade; | |||
font-size: $euiFontSizeL; | |||
line-height: $euiSizeL; |
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 works, but @include euiFontSizeL
will give you size and line height together in a more stable format that's more vertical rhythm aware. It should even remove your need for the padding (didn't test).
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.
Thanks for the suggestion @snide. I've switched out the font-size
and line-height
for @include euiFontSizeL
. Opted to retain just padding-bottom
after testing.
💚 Build Succeeded |
* [ML] Fixes to text spacings in data visualizer cards * [ML] Switch to using euiFontSizeL include for field title bar
Summary
Fixes a couple of minor styling issues on the Data Visualizer cards, with text spacing and the padding used in the title bar:
Before:
After:
Checklist