-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
feat(overlay): add ability to set custom class on panes #1584
Conversation
@fxck Would your specific problem be solved by simply having a higher z-index on the overlay container? (right now it's just 1 to create a new stacking context). |
No, unless I were in control of that z-index. But what might be worth doing is sticking that custom class on container rather than pane. I'm not sure what was the original reasoning for putting it on panes, it's been a while. I guess having the class on the container rather than on pane would make sense. You wouldn't have to use So how about this:
|
I see, the reason why I added it to Then there's this .. ..when you open, menu from inside a dialog, the stacking order is not correct, dialog itself it above menu's backdrop. I think is issue is a bit deeper, there should be some sort of stacking order manager. |
Are there any plans to continue with this PR? Something similar (being able to add a class to the |
I never got the reply about stacking manager. I think adding classes to either pane or overlay would be only a temporary fix and more issues will come up sooner or later. But I don't want to do anything without having a discussion. |
This has been on the backburner since I've been wanting to spend some more time thinking about how stacking should work in general. |
Stacking aside, this still could be useful, currently there's no way to properly style md-menu(stuff like |
I take it back, there is, it has to be global though. |
for what it was, this PR is obsolete, altho most of my points stands, there still are cases when inability to control z-index of panes and overlays still can cause problems, as well as I think there needs to be a class that handles z-index of various elements. |
@fxck ok will close this PR then, if you have concerns about z-index that aren't already being tracked by an issue, feel free to open a new issue to discuss them. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
I re-did #1438
It includes tests for overlay(I didn't see any similar tests for say backdrop class on menu or dialog, so I assumed it's not required since it should inherently work when overlay tests passes) and comments from the previous PR with the exception of #1438 (comment) and #1438 (comment) which didn't make sense to me.
@jelbourn