Skip to content

Commit

Permalink
demo.css: fix demo options not shown on Chrome
Browse files Browse the repository at this point in the history
Chrome doesn't allow changing the background color of the <option>
but it allows changing the text color.
As a result, the text was white on a white background.

Since Firefox allows background styling, the <option>
background is standardized to white so it works the
same in Firefox.
  • Loading branch information
mdamien authored Jan 8, 2018
1 parent fcf7a06 commit b7b4d68
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/styles/demo.css
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,11 @@ body .dg .dg.main.a {
-webkit-appearance: none;
}

.matter-select option {
background: white;
color: black;
}

.prevent-zoom-ios .matter-select {
font-size: 16px;
}
Expand Down Expand Up @@ -412,4 +417,4 @@ body .dg {
.matter-btn-source {
display: block;
}
}
}

0 comments on commit b7b4d68

Please sign in to comment.