ability to manually control overlay's z-index
See original GitHub issueThis would be handy for both user created overlays, as well as those used by angular components such as md-menu.
Take this for example http://plnkr.co/edit/AqjYdsScCYPlK9w44aHQ?p=preview you have a fixed element(some sort custom toolbar), inside it you have a button which triggers md-menu, it works fine, but the md-menu-click-catcher
, which is for some reason inside the actual md-menu
element, is actually stacked above md-overlay-container
, causing any attempt to click on the menu items to close the menu(which can be extremely confusing).
md-overlay-container
should not have z-index at all, as it renders z-indexes ofmd-overlay-pane
useless- you should be able to manually control z-index of
md-overlay-pane
I imagine(at least for the user invoked overlay), it could work either by being able to give the overlay my own identificator(class at least), or being able to set it via OverlayState
settings… the former is preferable, as you can then easily switch z-indexes with media queries.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:20
- Comments:11 (2 by maintainers)
Top GitHub Comments
Here is a good example why cdk-overlay-container should not have z-index
Thank you for submitting your feature request! Looks like during the polling process it didn’t collect a sufficient number of votes to move to the next stage.
We want to keep Angular rich and ergonomic and at the same time be mindful about its scope and learning journey. If you think your request could live outside Angular’s scope, we’d encourage you to collaborate with the community on publishing it as an open source package.
You can find more details about the feature request process in our documentation.