Skip to content
This repository has been archived by the owner on Aug 30, 2018. It is now read-only.

Force select option text color for IE #276

Merged
merged 2 commits into from Nov 21, 2014
Merged

Force select option text color for IE #276

merged 2 commits into from Nov 21, 2014

Conversation

cshold
Copy link
Contributor

@cshold cshold commented Nov 19, 2014

Small but necessary addition. IE10 dropdowns have a fixed white background color. This forces the text to always be visible, rather than inherit the select's text color. This is evident in dark themes that use white as the select text color. This only affects IE's option elements, as nearly every other browser has a preset style that you can't override.

Only downside is that IE9 will also change the current value's text color, so we need to force the background color too. IE9 screenshot is below. I think it's an acceptable flaw to this.

screen shot 2014-11-19 at 8 53 46 am

cc/ @Shopify/fed

cshold added a commit that referenced this pull request Nov 21, 2014
Force select option text color for IE
@cshold cshold merged commit 26cfee4 into master Nov 21, 2014
@cshold cshold deleted the select-color branch November 21, 2014 14:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant