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

Elements with a positive z-index in the [main] content appear above the overlay. #153

Open
ccjmne opened this issue Nov 6, 2016 · 0 comments

Comments

@ccjmne
Copy link

ccjmne commented Nov 6, 2016

Description

The #scrim overlay displayed in narrow layouts when the drawer is open does not properly cover the [main] element when some its content has a positive z-index.

Expected outcome

The overlay covers entirely the [main] content even if it hosts elements brought further to the front using the z-index property.

Actual outcome

The elements from the [main] content that have a positive z-index appear on top of the #scrim overlay.

Live Demo

https://jsbin.com/vasihiwovi/edit?html,css,output

Steps to reproduce

  1. Put a paper-drawer-panel element in the page.
  2. Add a main element in it. A plain div or a paper[-scroll]-header-panel would do.
  3. Add in some content, with position: relative; z-index: 1; styling.
  4. Ensure your layout is narrow enough to have the drawer collapsible.
  5. Open the drawer.
ccjmne added a commit to ccjmne/paper-drawer-panel that referenced this issue Nov 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant