-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
fix(select): Remove style customization for native select > option #4089
Conversation
packages/mdc-select/_mixins.scss
Outdated
@@ -272,7 +272,7 @@ | |||
} | |||
|
|||
> option { | |||
@include mdc-theme-prop(background-color, surface); | |||
@include mdc-theme-prop(background-color, surface, $edgeOptOut: true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@williamernest Do you know why we're applying styles to native elements here? select / option native elements doesn't allow style customization in most of the browser as far as I know.
In browsers that do allow customizations our native select needs to use a
different background color.
…On Thu, Nov 15, 2018, 8:42 AM Abhinay Omkar ***@***.*** wrote:
***@***.**** commented on this pull request.
------------------------------
In packages/mdc-select/_mixins.scss
<#4089 (comment)>
:
> @@ -272,7 +272,7 @@
}
> option {
- @include mdc-theme-prop(background-color, surface);
+ @include mdc-theme-prop(background-color, surface, $edgeOptOut: true);
@williamernest <https://github.com/williamernest> Do you know why we're
applying styles to native elements here? select / option native elements
doesn't allow style customization in most of the browser as far as I know.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4089 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Ag65XBuNPiud3UpcYB2ZnR-b9LADe61Jks5uvZmNgaJpZM4YgSJf>
.
|
All 663 screenshot tests passed for commit 8b30085 vs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
All 663 screenshot tests passed for commit 7e0d3b0 vs. |
Edge browser allows customizing only the background color of
<option>
element but not the text color.example on jsfiddle.
This fix removes any styles applied to native
<option>
element.Fixes #4088