Skip to content

Commit a5a8ff2

Browse files
crisbetommalerba
authored andcommitted
fix(chips): not visible in high contrast mode (#5338)
Fixes `md-chip` instances not being visible for users running high contrast mode.
1 parent 36dc75a commit a5a8ff2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/lib/chips/chips.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@import '../core/a11y/a11y';
2+
13
$mat-chip-vertical-padding: 8px;
24
$mat-chip-horizontal-padding: 12px;
35

@@ -23,6 +25,10 @@ $mat-chips-chip-margin: $mat-chip-horizontal-padding / 4;
2325
margin: 0 $mat-chips-chip-margin 0 0;
2426
}
2527
}
28+
29+
@include cdk-high-contrast {
30+
outline: solid 1px;
31+
}
2632
}
2733

2834
.mat-chip-list-stacked .mat-chip-list-wrapper {

0 commit comments

Comments
 (0)