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

.modal-dialog computed z-index=0 in Chrome #11139

Closed
chimmi opened this issue Oct 17, 2013 · 5 comments
Closed

.modal-dialog computed z-index=0 in Chrome #11139

chimmi opened this issue Oct 17, 2013 · 5 comments
Labels
Milestone

Comments

@chimmi
Copy link

chimmi commented Oct 17, 2013

I noticed that Chrome computes .modal-dialog z-index attribute as 0. Here is an example from modal demo in BS3 documentation:
gbdtona
And here is an isolated example: http://jsfiddle.net/L88E2/
The problem is that even if dialog itself looks and works completely fine, z-index=0 messes with plugins that calculate own z-index based on container.
P.S. I`m using Chrome 30.0.1599.101 m.

@cvrebert
Copy link
Collaborator

z-index=0 messes with plugins that calculate own z-index based on container.

Such as?

@cvrebert
Copy link
Collaborator

Sidenote: We don't officially support the use of third-party plugins.

@chimmi
Copy link
Author

chimmi commented Oct 17, 2013

Such as bootstrap-datepicker, and yes, i know that you dont support 3rd party plugins, but dont you think that modals shouldnt have such unexpected behaviour?

@chimmi chimmi closed this as completed Oct 17, 2013
@chimmi chimmi reopened this Oct 17, 2013
@mdo mdo closed this as completed in 5aa4c5c Oct 21, 2013
@mdo
Copy link
Member

mdo commented Oct 21, 2013

That's because we were setting position: relative;. Adding that fixes the computed z-index.

@chimmi
Copy link
Author

chimmi commented Oct 21, 2013

Thank you!

stempler pushed a commit to stempler/bootstrap that referenced this issue Apr 11, 2014
stempler pushed a commit to stempler/bootstrap that referenced this issue Nov 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants