Skip to content
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

Merged
merged 5 commits into from
Nov 27, 2018

Conversation

abhiomkar
Copy link
Collaborator

@abhiomkar abhiomkar commented Nov 15, 2018

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

@@ -272,7 +272,7 @@
}

> option {
@include mdc-theme-prop(background-color, surface);
@include mdc-theme-prop(background-color, surface, $edgeOptOut: true);
Copy link
Collaborator Author

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.

@williamernest
Copy link
Contributor

williamernest commented Nov 15, 2018 via email

@mdc-web-bot
Copy link
Collaborator

All 663 screenshot tests passed for commit 8b30085 vs. master! 💯🎉

Copy link
Contributor

@williamernest williamernest left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@abhiomkar abhiomkar changed the title fix(select): Optout edge when setting color to native select > option fix(select): Remove style customization for native select > option Nov 27, 2018
@mdc-web-bot
Copy link
Collaborator

All 663 screenshot tests passed for commit 7e0d3b0 vs. master! 💯🎉

@abhiomkar abhiomkar merged commit 379c522 into master Nov 27, 2018
@abhiomkar abhiomkar deleted the fix/select_edge_fix branch November 27, 2018 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mdc-select default browser styling - Edge
4 participants