mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(button): better accessibility for flat buttons in high-contrast (#9783)
* Improves the accessibility for `mat-flat-button` elements in high-contrast mode. Currently it's nearly impossible to figure out, whether it's a button or not.
This commit is contained in:
committed by
mmalerba
parent
d062ccb6ae
commit
e65f007dbb
@@ -124,9 +124,10 @@
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
// Add an outline to make it more visible in high contrast mode.
|
||||
// Add an outline to make buttons more visible in high contrast mode. Stroked buttons
|
||||
// don't need a special look in high-contrast mode, because those already have an outline.
|
||||
@include cdk-high-contrast {
|
||||
.mat-button, .mat-raised-button, .mat-icon-button, .mat-fab, .mat-mini-fab {
|
||||
.mat-button, .mat-flat-button, .mat-raised-button, .mat-icon-button, .mat-fab, .mat-mini-fab {
|
||||
outline: solid 1px;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user