-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Metrics UI] Tweak the z-index inventory toolbars #49642
Conversation
Pinging @elastic/logs-metrics-ui (Team:logs-metrics-ui) |
This makes sense. I'm kind of confused about why any of these toolbars have a z-index. Seems that they're unnecessary. What happens if you just remove it? |
@phillipb there are elements below the toolbars that have high z-index values. If we remove the z-index those elements will be higher in the stack. Edit: funnily enough the high |
@afgomez is it just the tooltip that does that? If that's the case, IMO, that might be ok since it's a fringe scenario. Also, seems like we could just up the z-index of the popover menus since they already have one. Basically, just trying to avoid the extra cognitive overhead/maintenance of an extra prop here. @simianhacker might have some thoughts here too. |
💚 Build Succeeded
|
Having a z-index adds problems with the stacking of the dropdowns when there are two toolbars together.
645dee2
to
4ce76f5
Compare
💚 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!
Having a z-index adds problems with the stacking of the dropdowns when there are two toolbars together.
Having a z-index adds problems with the stacking of the dropdowns when there are two toolbars together.
Having a z-index adds problems with the stacking of the dropdowns when there are two toolbars together.
Fixes #49601.
Adds azIndexDiff
attribute to the<Toolbar>
component that allows the consumer to individually tweak thez-index
of each individual toolbar. By lowering the z-index attribute of the second toolbar, we prevent it from covering the dropdowns of the first oneRemoves the z-index of the
<Toolbar>
to prevent stacking issues with the dropdowns of the different toolbars when there are two or more together.