-
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
adjust waterfall chart sidebar CSS to appropriately display border #92191
adjust waterfall chart sidebar CSS to appropriately display border #92191
Conversation
Pinging @elastic/uptime (Team:uptime) |
z-index: ${(props) => props.theme.eui.euiZLevel5}; | ||
`; | ||
min-width: 0; |
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.
My original max-width solution was kinda an antipattern. This is the appropriate way to handle flexbox and no-wrap children.
@elasticmachine merge upstream |
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 !!
…lastic#92191) Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
…lastic#92191) Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Summary
Fixes #91940
Fixes CSS to appropriately show the sidebar border
Before
After
NOTE: After spending some time on this, I've noticed that the y index shifts by a tiny amount of pixels (2 - 4 or so) depending on the amount of gridlines along the x axis. This is happening on the Elastic Chart side. This creates a situation where this isn't a single right amount of pixels to adjust the margin by. This creates a scenario in which some waterfall charts may have a small amount of pixels (2 - 4 or so), between the sidebar and the y axis.
Here is an example of a waterfall chart where the y axis shifts just slightly, causing a situation in which there is about 4 pixels between the border of the filter and the y axis. Fixing the issue for this chart and data set then creates an issue for another, because the spacing is not consistent.
I've adjusted the margin to help ensure that border is showing in the most amount of cases, despite the small gap between the sidebar and the y axis.