mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(chips): invert focus overlay on dark theme (#14204)
Similarly to `mat-button`, inverts the focus overlay color on a dark theme. Currently we always use an opaque black which can be mistaken for the disabled color on dark themes.
This commit is contained in:
committed by
Jeremy Elbourn
parent
66b6c97bf7
commit
89a4c9cbe1
@@ -50,10 +50,13 @@ $mat-chip-remove-font-size: 18px;
|
||||
&.mat-chip-disabled {
|
||||
opacity: 0.4;
|
||||
}
|
||||
|
||||
&::after {
|
||||
background: map_get($foreground, base);
|
||||
}
|
||||
}
|
||||
|
||||
.mat-chip.mat-standard-chip.mat-chip-selected {
|
||||
|
||||
&.mat-primary {
|
||||
@include mat-chips-theme-color($primary);
|
||||
}
|
||||
|
||||
@@ -57,7 +57,6 @@ $mat-chip-remove-size: 18px;
|
||||
&::after {
|
||||
@include mat-fill;
|
||||
border-radius: inherit;
|
||||
background-color: black;
|
||||
opacity: 0;
|
||||
content: '';
|
||||
pointer-events: none;
|
||||
|
||||
Reference in New Issue
Block a user