From 16d86560378260d36a3b79af28e5903c6e8dc6f4 Mon Sep 17 00:00:00 2001 From: Wagner Maciel Date: Fri, 5 Aug 2022 01:19:53 +0000 Subject: [PATCH 1/2] fix(material/input): fix input suffix disabled color --- src/material/legacy-input/_input-theme.scss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/material/legacy-input/_input-theme.scss b/src/material/legacy-input/_input-theme.scss index bab084223b96..b1358a3c03c4 100644 --- a/src/material/legacy-input/_input-theme.scss +++ b/src/material/legacy-input/_input-theme.scss @@ -61,6 +61,10 @@ .mat-form-field-type-mat-native-select.mat-form-field-invalid .mat-form-field-infix::after { color: theming.get-color-from-palette($warn, text); } + + .mat-form-field-disabled .mat-form-field-suffix { + color: theming.get-color-from-palette($foreground, disabled-text); + } } @mixin typography($config-or-theme) { From 6726a668d50c1b99c596b8a0f585e856486ec39c Mon Sep 17 00:00:00 2001 From: Wagner Maciel Date: Fri, 5 Aug 2022 11:30:58 -0400 Subject: [PATCH 2/2] fixup! fix(material/input): fix input suffix disabled color --- src/material/legacy-input/_input-theme.scss | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/material/legacy-input/_input-theme.scss b/src/material/legacy-input/_input-theme.scss index b1358a3c03c4..7529d43492c6 100644 --- a/src/material/legacy-input/_input-theme.scss +++ b/src/material/legacy-input/_input-theme.scss @@ -62,8 +62,11 @@ color: theming.get-color-from-palette($warn, text); } - .mat-form-field-disabled .mat-form-field-suffix { - color: theming.get-color-from-palette($foreground, disabled-text); + .mat-form-field-disabled { + .mat-form-field-prefix, + .mat-form-field-suffix { + color: theming.get-color-from-palette($foreground, disabled-text); + } } }