mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(toolbar): improved high contrast accessibility (#10465)
Currently the toolbar blends into the background for users in high contrast mode. These changes add an outline to make it stand out.
This commit is contained in:
committed by
mmalerba
parent
6d9ed8a326
commit
e409ec4f4d
@@ -1,4 +1,5 @@
|
||||
@import '../core/style/variables';
|
||||
@import '../../cdk/a11y/a11y';
|
||||
|
||||
$mat-toolbar-height-desktop: 64px !default;
|
||||
$mat-toolbar-height-mobile-portrait: 56px !default;
|
||||
@@ -16,6 +17,12 @@ $mat-toolbar-row-padding: 16px !default;
|
||||
}
|
||||
}
|
||||
|
||||
.mat-toolbar {
|
||||
@include cdk-high-contrast {
|
||||
outline: solid 1px;
|
||||
}
|
||||
}
|
||||
|
||||
.mat-toolbar-row, .mat-toolbar-single-row {
|
||||
display: flex;
|
||||
box-sizing: border-box;
|
||||
|
||||
Reference in New Issue
Block a user