mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(form-field): unable to distinguish disabled form field in high contrast mode (#12445)
Fixes the disabled form field being indistinguishable from enabled ones in high contrast mode, due to the dotted gradient not being rendered.
This commit is contained in:
committed by
Jeremy Elbourn
parent
db8f83dfe2
commit
df2b371d66
@@ -58,6 +58,11 @@ $mat-form-field-legacy-underline-height: 1px !default;
|
||||
&.mat-form-field-disabled .mat-form-field-underline {
|
||||
background-position: 0;
|
||||
background-color: transparent;
|
||||
|
||||
@include cdk-high-contrast {
|
||||
border-top-style: dotted;
|
||||
border-top-width: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
&.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple {
|
||||
|
||||
@@ -42,6 +42,11 @@ $mat-form-field-standard-padding-top: 0.75em !default;
|
||||
&.mat-form-field-disabled .mat-form-field-underline {
|
||||
background-position: 0;
|
||||
background-color: transparent;
|
||||
|
||||
@include cdk-high-contrast {
|
||||
border-top-style: dotted;
|
||||
border-top-width: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
// Note that we need this specific of a selector because we don't want
|
||||
|
||||
Reference in New Issue
Block a user