Commit cb981f6a authored by michaelpg's avatar michaelpg Committed by Commit bot

MD Settings: Keep sliding subpages within card

The sliding subpages in neon-animated-pages (settings-animated-pages)
shouldn't protrude past the edges of the card when sliding left/right. A
stacking context ensures this without screwing up positioning of the card.

BUG=640315
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation

Review-Url: https://codereview.chromium.org/2264353004
Cr-Commit-Position: refs/heads/master@{#414866}
parent 5a465d6e
...@@ -36,6 +36,8 @@ ...@@ -36,6 +36,8 @@
:host(.collapsing) #card, :host(.collapsing) #card,
:host(.expanded) #card { :host(.expanded) #card {
@apply(--shadow-elevation-4dp); @apply(--shadow-elevation-4dp);
/* A stacking context constrains sliding sub-pages to the card. */
z-index: 0;
} }
:host(:not(.expanding):not(.expanded)) #card { :host(:not(.expanding):not(.expanded)) #card {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment