material-components / material-components-web

Modular and customizable Material Design UI components for the web
https://material.io/develop/web
MIT License
17.12k stars 2.15k forks source link

Demo site's toolbar z-index is lower than some of the components #738

Open yeelan0319 opened 7 years ago

yeelan0319 commented 7 years ago

Bugs

What MDC-Web Version are you using?

0.11.1

What are the steps to reproduce the bug?

  1. Open MDC demo site, go toswitch or toolbar
  2. Scroll down

What is the expected behavior?

Component should be covered by demo site's toolbar

What is the actual behavior?

Some of the component when above the toolbar.

traviskaufman commented 7 years ago

Short-term solve would be to just bump the z-index on toolbars 🙃

More long-term solve would most likely come out of #461

anton-kachurin commented 7 years ago

Adding main {position: relative; z-index: 0} to demo.css may be another option.