-
Notifications
You must be signed in to change notification settings - Fork 77
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(tooltip): Prevent tooltip from appearing above modal overlay #5873
Conversation
|
||
:root { | ||
--calcite-floating-ui-transition: var(--calcite-animation-timing); | ||
--calcite-floating-ui-z-index: theme("zIndex.dropdown"); |
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.
Makes the default zIndex that of a dropdown.
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.
👍
@@ -143,6 +143,7 @@ | |||
} | |||
|
|||
.floating-ui-container { | |||
--calcite-floating-ui-z-index: theme("zIndex.dropdown"); |
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.
Nitpick: Should we rename zIndex.dropdown
to zIndex.default
(or another name that's less specific) since it is now being used as the default, and no longer specific to dropdown?
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.
hmm our tailwind already has a zindex.default of 1. I think this is fine as is.
Related Issue: #5388
Summary
fix(tooltip): Prevent tooltip from appearing above modal overlay. #5388
--calcite-tooltip-z-index
and--calcite-popover-z-index