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

[zIndex] Add a common index #2444

Merged
merged 1 commit into from
Dec 10, 2015
Merged

[zIndex] Add a common index #2444

merged 1 commit into from
Dec 10, 2015

Conversation

oliviertassinari
Copy link
Member

It's good to notice that boostrap is using the following values:

@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)

dialog: 13,
layer: 20,
popover: 20,
};
Copy link
Member Author

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)

Copy link
Member

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

@alitaheri alitaheri modified the milestone: 0.14.0 Release Dec 9, 2015
let styles = {
root: {
position: 'fixed',
height: '100%',
width: '100%',
zIndex: 9,
zIndex: rawTheme.zIndex.dialog - 1,
Copy link
Member

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

@oliviertassinari
Copy link
Member Author

@subjectix Are you ok with this?

@alitaheri
Copy link
Member

@oliviertassinari It's very good, Thanks a lot :+1 👍

oliviertassinari added a commit that referenced this pull request Dec 10, 2015
@oliviertassinari oliviertassinari merged commit 403fe00 into mui:master Dec 10, 2015
@oliviertassinari oliviertassinari deleted the zindex-fix branch December 10, 2015 13:07
layer: 2000,
popover: 2100,
tooltip: 3000,
};
Copy link
Member Author

Choose a reason for hiding this comment

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

here is the index.

@alitaheri
Copy link
Member

awesome 👍

@zannager zannager added the package: styles Specific to @mui/styles. Legacy package, @material-ui/styled-engine is taking over in v5. label Mar 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: styles Specific to @mui/styles. Legacy package, @material-ui/styled-engine is taking over in v5.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants