-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
[zIndex] Add a common index #2444
Conversation
dialog: 13, | ||
layer: 20, | ||
popover: 20, | ||
}; |
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.
That's the most important part.
That's what boostrap is using:
@zindex-navbar: 1000;
@zindex-dropdown: 1000;
@zindex-navbar-fixed: 1030;
@zindex-modal-background: 1040;
@zindex-modal: 1050;
@zindex-popover: 1060;
@zindex-tooltip: 1070;
(https://github.com/twbs/bootstrap/blob/master/less/variables.less#L272)
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.
we definately need tooltip too. add it for now, we can fix #210 and related issues with this
let styles = { | ||
root: { | ||
position: 'fixed', | ||
height: '100%', | ||
width: '100%', | ||
zIndex: 9, | ||
zIndex: rawTheme.zIndex.dialog - 1, |
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.
I think it's better to have dialogOverlay
and leftNavOverlay
too. dialog - 1 = leftnav. that means it's possible that dialog's overlay might not cover leftnav's in some cases, which is undesirable
@subjectix Are you ok with this? |
@oliviertassinari It's very good, Thanks a lot :+1 👍 |
[zIndex] Add a common index
layer: 2000, | ||
popover: 2100, | ||
tooltip: 3000, | ||
}; |
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.
here is the index.
awesome 👍 |
It's good to notice that boostrap is using the following values:
(https://github.com/twbs/bootstrap/blob/master/less/variables.less#L272)