Skip to content

Commit 7af8d02

Browse files
crisbetojelbourn
authored andcommitted
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.
1 parent ebc56a8 commit 7af8d02

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/lib/chips/_chips-theme.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,13 @@ $mat-chip-remove-font-size: 18px;
5050
&.mat-chip-disabled {
5151
opacity: 0.4;
5252
}
53+
54+
&::after {
55+
background: map_get($foreground, base);
56+
}
5357
}
5458

5559
.mat-chip.mat-standard-chip.mat-chip-selected {
56-
5760
&.mat-primary {
5861
@include mat-chips-theme-color($primary);
5962
}

src/lib/chips/chips.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ $mat-chip-remove-size: 18px;
5757
&::after {
5858
@include mat-fill;
5959
border-radius: inherit;
60-
background-color: black;
6160
opacity: 0;
6261
content: '';
6362
pointer-events: none;

0 commit comments

Comments
 (0)