-
Notifications
You must be signed in to change notification settings - Fork 842
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
Fix EuiProgress styles #3948
Fix EuiProgress styles #3948
Conversation
Preview documentation changes for this PR: https://eui.elastic.co/pr_3948/ |
The good thing is that I'm not seeing any differences between the old and new versions. Though I am slightly confused as to why you were getting such a different render in Kibana. The Kibana version looks like it just wasn't handling the truncation properly? Could you copy/paste what the DOM render looks like on the Kibana side? Just to see what the configuration is over there and why it ended up so different. My main concern is just that negative margin. We've already seen this break other components like EuiFacetGroup. |
@cchaos Not sure if this is what you meant but
|
Simple fix for truncation and padding of value text
@cchaos thanks for your PR, just merged it. Just one question, what are tabular numbers? Also I added |
Preview documentation changes for this PR: https://eui.elastic.co/pr_3948/ |
Essentially tabular numbers makes the numbers of a font behave almost like they are a monospace font so that when they are lined up in a column, they align better. Here's a screenshot of how it's supposed to behave with Inter. As I mentioned in the meeting, however, this is not currently working with the Google font. So I'll have to explore that later. |
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.
👍 Changes LGTM. I think this solution is he best situation we can get to while enforcing consumers to modify their values to ensure proper display.
@cchaos Thanks for the explanation! merging now. |
Summary
I tried to implement the new
EuiProgress
props into Kibana (Lens/Discover sidebars) and run into some small styling issues. See:What I'm proposing is to add an extra class for when
euiProgress__data
has alabel
to apply different styling.Checklist
- [ ] Props have proper autodocs- [ ] Added documentation- [ ] Checked Code Sandbox works for the any docs examples- [ ] Checked for breaking changes and labeled appropriately- [ ] Checked for accessibility including keyboard-only and screenreader modes