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): Fix dropdown color/opacity and options background #3553

Merged
merged 8 commits into from
Sep 19, 2018

Conversation

williamernest
Copy link
Contributor

fixes: #3550

@@ -147,7 +147,10 @@
}
}

@mixin mdc-select-dd-arrow-svg-bg_($fill-hex-number: 000000, $opacity: .54) {
@mixin mdc-select-dd-arrow-svg-bg_($fill-hex-number: #000000, $opacity: .54) {
// Remove leading # from
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this comment missing some words? Or drop "from"?

@@ -147,7 +147,10 @@
}
}

@mixin mdc-select-dd-arrow-svg-bg_($fill-hex-number: 000000, $opacity: .54) {
@mixin mdc-select-dd-arrow-svg-bg_($fill-hex-number: #000000, $opacity: .54) {
Copy link
Contributor

Choose a reason for hiding this comment

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

  • Remove the default value for the first parameter since we always specify it
  • Should the default opacity be represented in a variable? Should we also always specify that in the mixin invocation rather than providing a default? (Currently we pass 1 parameter in one invocation, and 2 parameters in the other)

@@ -89,6 +89,8 @@

// stylelint-disable-next-line selector-max-type, plugin/selector-bem-pattern
> option {
@include mdc-theme-prop(background-color, surface);
Copy link
Contributor

Choose a reason for hiding this comment

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

What effect does this have on native selects?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This causes the background-color to be the surface color on browsers that allow it. Since we're changing the color on Line 94, we also need to adjust the background-color. On browsers that don't allow modifications to the dropdown options, neither of these apply and the dropdown is rendered with a white background and black text.

@williamernest williamernest merged commit 3e26342 into master Sep 19, 2018
@williamernest williamernest deleted the fix/select/dropdown-color branch September 19, 2018 20:42
@jamesmfriedman jamesmfriedman mentioned this pull request Sep 26, 2018
49 tasks
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 - Options cannot be seen and down arrow color stays black on dark theme
3 participants