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
Legend / color picker overflow #30960
Legend / color picker overflow #30960
Conversation
No uses the same base styles as Visualize and Canvas
removing hard-coded hex values where possible and adding an alpha channel to those that can’t
Since `.reverse` doesn’t exist unless bg is opposite of theme
…nd-colorpicker-overflow
💚 Build Succeeded |
💚 Build Succeeded |
💔 Build Failed |
/** | ||
* 1. Position the .visLegend__valueDetails absolutely against the legend item | ||
* 2. Make sure the .visLegend__valueDetails is visible outside the list bounds | ||
* 3. Make sure the currently selected item is top most in z level |
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.
Why were these comments removed?
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.
Oh yeah this is much better, thank you. Once those comments go back in, I think it's ready for CI. I just had one more suggestion.
|
||
.visLib--legend-bottom & { | ||
bottom: $visLegendLineHeight + $euiSizeXS; | ||
margin-bottom: $euiSizeXS; |
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.
To clean these two lines you could just add that margin bottom amount to the bottom
so it's:
bottom: $visLegendLineHeight + $euiSizeS;
💚 Build Succeeded |
💚 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.
nevermind the 2). figured i can close it by clicking on the same item again ... but took me some time, so we might want to improve experience around that by hiding it on clicking outside ?
long legends need to be fixed.
I mentioned that in the PR description, I will fix this is a separate PR since it is another bug (not related to the overlays itself, happens even if no overlay is expanded) which seems to be caused by the chart not correctly calculating its bounds (perhaps something about the render order?).
+1, makes sense to me, what do you think @cchaos ? |
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.
sorry, missed that. apart from that its a LGTM
I think it's fine to figure that out later or just wait for the new charts |
Summary
Fixes #17488
Depends on #30478
This fixes some layouting problems with the legend/ color picker:
This doesn't fix the problem with multi-line horizontal legends pushing down the chart @ppisljar noted in an old unmerged PR (#17489) for this issue but I think we should fix that one in a separate PR because it seems to be caused by the visualization itself not correctly updating its bounds.
Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.- [ ] Any text added follows EUI's writing guidelines, uses sentence case text and includes i18n support- [ ] Documentation was added for features that require explanation or tutorials- [ ] Unit or functional tests were updated or added to match the most common scenarios- [ ] This was checked for keyboard-only and screenreader accessibilityFor maintainers
- [] This includes a feature addition or change that requires a release note and was labeled appropriately