Skip to content

Commit 48f7892

Browse files
committed
docs: do not show deprecated label options in form-field overv… (#18690)
Closes #18678.
1 parent a38b66e commit 48f7892

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/material/form-field/form-field.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,14 @@ present in the form field control. It can also be set to `auto` to restore the d
7272

7373
<!-- example(form-field-label) -->
7474

75-
Global default label options can be specified by providing a value for
76-
`MAT_LABEL_GLOBAL_OPTIONS` in your application's root module. Like the property, the global
77-
setting can be either `always`, `never`, or `auto`.
75+
The floating label behavior can be adjusted globally by providing a value for
76+
`MAT_FORM_FIELD_DEFAULT_OPTIONS` in your application's root module. Like the `floatLabel` input,
77+
the option can be either set to `always`, `never`, or `auto`.
7878

7979
```ts
8080
@NgModule({
8181
providers: [
82-
{provide: MAT_LABEL_GLOBAL_OPTIONS, useValue: {float: 'always'}}
82+
{provide: MAT_FORM_FIELD_DEFAULT_OPTIONS, useValue: {floatLabel: 'always'}}
8383
]
8484
})
8585
```

0 commit comments

Comments
 (0)