-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs(form-field): update documentation regarding label and placeholder #11037
Conversation
src/lib/form-field/form-field.html
Outdated
@@ -22,13 +22,15 @@ | |||
*ngIf="_hasFloatingLabel()" | |||
[ngSwitch]="_hasLabel()"> | |||
|
|||
<!-- @deletion-target 7.0.0 remove in favor of mat-label element an placeholder attr. --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we're deprecating it in 6, then I believe the deletion target has to be v8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
src/lib/form-field/form-field.md
Outdated
`mat-label` element. | ||
|
||
In the legacy version of the `<mat-form-field>` (one that has no `appearance` attribute or has | ||
`appearance="legacy"`) if a label is not specified the `placeholder` attribute on the form control |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs a comma before the placeholder
.
src/lib/select/select.md
Outdated
[form field placeholder documentation](https://material.angular.io/components/form-field/overview#floating-placeholder). | ||
The placeholder is text shown when the `<mat-form-field>` label is floating but the `<mat-select>` | ||
is empty. It is used to give the user an additional hint about the value they should select. The | ||
placeholder can be specified by setting the `placeholder` on the `<mat-select>` element. In some |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"the placeholder
" -> "the placeholder
attribute"
e057016
to
3f319cf
Compare
comments addressed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
fixes #10830