Skip to content

Commit f133da9

Browse files
authored
refactor(form-field): remove deprecated @inputs (#10294)
small piece of #10164, split out for presubmit reasons BREAKING CHANGES: - dividerColor which was deprecated in 5.0.0 has been removed. Use color instead. - floatPlaceholder which was deprecated in 5.0.0 has been removed. Use floatLabel instead.
1 parent ced9c90 commit f133da9

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

src/lib/form-field/form-field.ts

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ import {
3232
LabelOptions,
3333
MAT_LABEL_GLOBAL_OPTIONS,
3434
mixinColor,
35-
ThemePalette
3635
} from '@angular/material/core';
3736
import {fromEvent} from 'rxjs/observable/fromEvent';
3837
import {startWith} from 'rxjs/operators/startWith';
@@ -138,14 +137,6 @@ export class MatFormField extends _MatFormFieldMixinBase
138137
}
139138
_appearance: MatFormFieldAppearance;
140139

141-
/**
142-
* @deprecated Use `color` instead.
143-
* @deletion-target 6.0.0
144-
*/
145-
@Input()
146-
get dividerColor(): ThemePalette { return this.color; }
147-
set dividerColor(value: ThemePalette) { this.color = value; }
148-
149140
/** Whether the required marker should be hidden. */
150141
@Input()
151142
get hideRequiredMarker(): boolean { return this._hideRequiredMarker; }
@@ -180,15 +171,6 @@ export class MatFormField extends _MatFormFieldMixinBase
180171
// Unique id for the hint label.
181172
_hintLabelId: string = `mat-hint-${nextUniqueId++}`;
182173

183-
/**
184-
* Whether the placeholder should always float, never float or float as the user types.
185-
* @deprecated Use floatLabel instead.
186-
* @deletion-target 6.0.0
187-
*/
188-
@Input()
189-
get floatPlaceholder(): FloatLabelType { return this.floatLabel; }
190-
set floatPlaceholder(value: FloatLabelType) { this.floatLabel = value; }
191-
192174
/**
193175
* Whether the label should always float, never float or float as the user types.
194176
*

0 commit comments

Comments
 (0)