-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
feat(select): allow setting the theme color #3928
Conversation
9f67962
to
3bbdd97
Compare
@@ -24,15 +24,15 @@ | |||
} | |||
|
|||
.mat-pseudo-checkbox-checked, .mat-pseudo-checkbox-indeterminate { | |||
&.mat-primary { | |||
&.mat-primary, .mat-primary & { |
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.
As we discovered in #4077, adding the &
of the selector doesn't work with secondary themes
src/lib/select/_select-theme.scss
Outdated
|
||
.mat-select-underline { | ||
background-color: mat-color($primary); | ||
} |
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.
Make this a mixin?
* Allows the user to set the theme color of a `md-select`. * Adds theming to the `md-option` component. * Tweaks the `md-pseudo-checkbox` theme to allow it to inherit the color. Fixes angular#3923.
3bbdd97
to
d299c84
Compare
Addressed the feedback, rebased and cleaned up the select theming in general. Can you take another look @jelbourn? |
Fixed the theming on the options @jelbourn. |
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
* Fixes certain theme selectors being broken due to uses of the `&` operator at the end of the selector. * Adds a custom Stylelint rule to catch future improper uses of the ampersand inside themes. Relates to angular#3928. Fixes angular#4077.
* Fixes certain theme selectors being broken due to uses of the `&` operator at the end of the selector. * Adds a custom Stylelint rule to catch future improper uses of the ampersand inside themes. Relates to angular#3928. Fixes angular#4077.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
md-select
.md-option
component.md-pseudo-checkbox
theme to allow it to inherit the color.Fixes #3923.