Skip to content

Commit

Permalink
fix(chips): invert focus overlay on dark theme (#14204)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
crisbeto authored and jelbourn committed Dec 3, 2018
1 parent ebc56a8 commit 7af8d02
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/lib/chips/_chips-theme.scss
Expand Up @@ -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);
}
Expand Down
1 change: 0 additions & 1 deletion src/lib/chips/chips.scss
Expand Up @@ -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;
Expand Down

0 comments on commit 7af8d02

Please sign in to comment.