PolymerElements / app-layout

App layout elements
https://webcomponents.org/element/PolymerElements/app-layout
597 stars 311 forks source link

polymer or mwc element rendered through app-drawer #581

Closed gdevacc12 closed 5 years ago

gdevacc12 commented 5 years ago

Description: With @polymer/app-layout@3.0.2 (with app-layout/app-drawer, when using polymer input elements (or MWC) on views that should appear hidden by the drawer the component renders on top of the drawer.

Expected outcome: The drawer appears on top of the the views (e.g. my-view1) masking the underlying view.

Actual outcome: The input components on a view bleed though to the drawer.

Steps to reproduce: Start with the pwa-starter-kit. npm install for example @polymer/paper-input (@polymer/paper-input@3.0.2) add paper-input to my-view1 so it should be masked by the drawer in narrow view Show the drawer

Browsers Affected:

gdevacc12 commented 5 years ago

A work around is to add the following style to the element importing app-drawer. app-drawer { z-index: 1; }

This worked with app-layout 3.1.0.

e111077 commented 5 years ago

Hello, I've added a default z index which should solve this for the default case. Will do a release soon.