Skip to content

Commit

Permalink
fix(select): Fixing bug with select menu z-index (material-components…
Browse files Browse the repository at this point in the history
…#460)

Some elements were showing up over the select menu's pop out. e.g.
radio-buttons. To demonstrate the problem, I copied demos/radio.html:72-94 into
demos/select.html just after line 74. This puts a radio button right
where the select menu pops up. When running the demo without the fix,
you can see the radio button over the select menu. With the z-index fix,
the menu appropriately pops up over the radio-button.

Fixes material-components#432
  • Loading branch information
lukebergen authored and pgbross committed Apr 5, 2017
1 parent c3e0c17 commit 2ed6cd9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/mdc-select/mdc-select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
max-height: 100%;
transform-origin: center center;
overflow-y: scroll;
z-index: 4; // Should pop up above everything else. temporary-drawer is next highest at 3.
}

&__selected-text {
Expand Down

0 comments on commit 2ed6cd9

Please sign in to comment.