mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(tabs): unable to distinguish disabled tab in high contrast mode (#12160)
Fixes disabled tabs being indistinguishable from enabled ones in high contrast mode.
This commit is contained in:
committed by
Jeremy Elbourn
parent
afb0ee37eb
commit
98b9ed14be
@@ -24,10 +24,18 @@ $mat-tab-animation-duration: 500ms !default;
|
||||
&:not(.mat-tab-disabled) {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
@include cdk-high-contrast {
|
||||
outline: dotted 2px;
|
||||
}
|
||||
}
|
||||
|
||||
&.mat-tab-disabled {
|
||||
cursor: default;
|
||||
|
||||
@include cdk-high-contrast {
|
||||
opacity: 0.5;
|
||||
}
|
||||
}
|
||||
|
||||
.mat-tab-label-content {
|
||||
@@ -36,6 +44,10 @@ $mat-tab-animation-duration: 500ms !default;
|
||||
align-items: center;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
@include cdk-high-contrast {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
// Mixin styles for the top section of the view; contains the tab labels.
|
||||
|
||||
Reference in New Issue
Block a user