You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(form-field): add support for separate label and placeholder
* Adds the ability for the user to specify both a label and placeholder text for a form field.
* Renames all of the "floating placeholder" related terminology to refer to a "floating label" instead.
* Aligns the input placeholder color with the Material spec.
BREAKING CHANGE: The `MatFormFieldControl.shouldPlaceholderFloat` property has been renamed to `shouldLabelFloat`.
BREAKING CHANGE: The `MAT_PLACEHOLDER_GLOBAL_OPTIONS`, `FloatPlaceholderType` and `PlaceholderOptions` symbols are now deprecated. Use `MAT_LABEL_GLOBAL_OPTIONS`, `FloatLabelType` and `LabelOptions` instead.
BREAKING CHANGE: The `MatFormField.floatPlaceholder` input has been deprecated, use `floatLabel` instead.
Fixes#6194.
0 commit comments