-
Notifications
You must be signed in to change notification settings - Fork 6.8k
fix(chips): disabled state not matching specs #13272
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(chips): disabled state not matching specs #13272
Conversation
src/lib/chips/chips.scss
Outdated
@@ -150,6 +146,17 @@ $mat-chip-remove-size: 18px; | |||
} | |||
} | |||
|
|||
.mat-standard-chip.mat-chip-disabled { |
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.
This can be moved up into the .mat-standard-chip
styles so all the standard chip styling is in the same place.
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.
Done.
src/lib/chips/_chips-theme.scss
Outdated
&:focus { | ||
@include _mat-theme-elevation(3, $theme); | ||
&:not(.mat-chip-disabled) { | ||
&:focus, &:active { |
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.
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.
Yeah, I can change that while being at it. Should I also make the overlay darker if focused?
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.
Sure.
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.
Done. The darker overlay if focused is already added to the chips.
eac3dce
to
2013153
Compare
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
2013153
to
3022b8b
Compare
* Currently if chips are disabled with the spec 2018 alignment, it's not clear whether a chip is disabled or not. The chip still has a focus effect, hover effect and pointer cursor for the `mat-chip-remove`. * Also moves the `@include mat-elevation` to the theme (probably introduced before: angular#11344 has been merged)
3022b8b
to
662abab
Compare
* Currently if chips are disabled with the spec 2018 alignment, it's not clear whether a chip is disabled or not. The chip still has a focus effect, hover effect and pointer cursor for the `mat-chip-remove`. * Also moves the `@include mat-elevation` to the theme (probably introduced before: #11344 has been merged)
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. |
mat-chip-remove
.@include mat-elevation
to the theme (probably introduced before: feat(elevation): move elevation rules into theme stylesheets #11344 has been merged)