Skip to content
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

Conversation

dominiqueclarke
Copy link
Contributor

Summary

Fixes #91940

Fixes CSS to appropriately show the sidebar border

Before
Screen Shot 2021-02-19 at 3 02 52 PM

After
Screen Shot 2021-02-19 at 2 53 37 PM

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.

Screen Shot 2021-02-22 at 9 46 50 AM

@dominiqueclarke dominiqueclarke requested a review from a team as a code owner February 22, 2021 14:55
@botelastic botelastic bot added the Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability label Feb 22, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/uptime (Team:uptime)

@dominiqueclarke dominiqueclarke added bug Fixes for quality problems that affect the customer experience Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability v7.12.0 v7.13.0 v8.0.0 release_note:skip Skip the PR/issue when compiling release notes auto-backport Deprecated - use backport:version if exact versions are needed and removed Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability labels Feb 22, 2021
z-index: ${(props) => props.theme.eui.euiZLevel5};
`;
min-width: 0;
Copy link
Contributor Author

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.

@dominiqueclarke
Copy link
Contributor Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
uptime 928.5KB 928.5KB -23.0B

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

Copy link
Contributor

@shahzad31 shahzad31 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM !!

@dominiqueclarke dominiqueclarke merged commit 95516e6 into elastic:master Feb 23, 2021
@dominiqueclarke dominiqueclarke deleted the fix/91940-uptime-waterfall-sidebar-border branch February 23, 2021 03:11
kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Feb 23, 2021
…lastic#92191)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Feb 23, 2021
…lastic#92191)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
@kibanamachine
Copy link
Contributor

💚 Backport successful

7.12 / #92342
7.x / #92343

Successful backport PRs will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request Feb 23, 2021
…92191) (#92342)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Dominique Clarke <doclarke71@gmail.com>
kibanamachine added a commit that referenced this pull request Feb 23, 2021
…92191) (#92343)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Dominique Clarke <doclarke71@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed bug Fixes for quality problems that affect the customer experience release_note:skip Skip the PR/issue when compiling release notes Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability v7.12.0 v7.13.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Uptime] Waterfall Chart Sidebar missing border
4 participants