diff --git a/src/lib/form-field/form-field-legacy.scss b/src/lib/form-field/form-field-legacy.scss index f0be9791b866..77344f0999f6 100644 --- a/src/lib/form-field/form-field-legacy.scss +++ b/src/lib/form-field/form-field-legacy.scss @@ -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 { diff --git a/src/lib/form-field/form-field-standard.scss b/src/lib/form-field/form-field-standard.scss index 4910f3efa458..16a8ce349c9f 100644 --- a/src/lib/form-field/form-field-standard.scss +++ b/src/lib/form-field/form-field-standard.scss @@ -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