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

fix(overlay): proper backdrop stacking with multiple overlays #2276

Merged
merged 2 commits into from
Dec 20, 2016

Conversation

crisbeto
Copy link
Member

@crisbeto crisbeto commented Dec 19, 2016

Currently backdrops get inserted after their corresponding overlays in the DOM. This can lead to situations where another overlay that is technically lower in the stacking order could go above a backdrop (e.g. opening a select inside a dialog). These changes switch to doing the stacking by having the overlay and backdrop have the same z-index and determining the stacking order by the order of the elements in the DOM.

Fixes #2272.

Note: I'm expecting this to have some merge conflicts with #2258.

@crisbeto crisbeto requested a review from jelbourn December 19, 2016 10:25
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Dec 19, 2016
@jelbourn
Copy link
Member

LGTM, I'm going to try to get that renaming PR in first

Currently backdrops get inserted after their corresponding overlays in the DOM. This can lead to situations where another overlay that is technically lower in the stacking order could go above a backdrop (e.g. opening a `select` inside a `dialog`). These changes switch to doing the stacking by having the overlay and backdrop have the same `z-index` and determining the stacking order by the order of the elements in the DOM.

Fixes angular#2272.
@crisbeto crisbeto force-pushed the 2272/overlay-backdrop-stacking branch from 7114888 to c5de24f Compare December 20, 2016 08:46
@crisbeto
Copy link
Member Author

Seems like some of the tests started failing after I rebased from master. Investigating.

@crisbeto
Copy link
Member Author

Alright, it's sorted out. I had to rename the selector to use the cdk- prefix.

@jelbourn jelbourn added the action: merge The PR is ready for merge by the caretaker label Dec 20, 2016
@jelbourn jelbourn merged commit b16031a into angular:master Dec 20, 2016
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

md-select overlay not dismissed inside dialog
3 participants