Skip to content

Commit 0f739db

Browse files
authored
refactor(form-field): remove unnecessary bindings (#16941)
Removes the `mat-accent` and `mat-warn` host bindings from the `mat-form-field` since they're already handled by the `Color` mixin.
1 parent 70564f3 commit 0f739db

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/material/form-field/form-field.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,6 @@ export const MAT_FORM_FIELD = new InjectionToken<MatFormField>('MatFormField');
137137
'[class.mat-form-field-disabled]': '_control.disabled',
138138
'[class.mat-form-field-autofilled]': '_control.autofilled',
139139
'[class.mat-focused]': '_control.focused',
140-
'[class.mat-accent]': 'color == "accent"',
141-
'[class.mat-warn]': 'color == "warn"',
142140
'[class.ng-untouched]': '_shouldForward("untouched")',
143141
'[class.ng-touched]': '_shouldForward("touched")',
144142
'[class.ng-pristine]': '_shouldForward("pristine")',

0 commit comments

Comments
 (0)