Skip to content

docs(text-field,input): text-field headings don't have anchors #16745

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

Merged
merged 1 commit into from
Oct 28, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/cdk/text-field/text-field.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
The `text-field` package provides useful utilities for working with text input fields such as
`<input>` and `<textarea>`.

## Automatically resizing a `<textarea>`
### Automatically resizing a `<textarea>`

The `cdkTextareaAutosize` directive can be applied to any `<textarea>` to make it automatically
resize to fit its content. The minimum and maximum number of rows to expand to can be set via the
Expand All @@ -14,7 +14,7 @@ affecting the `<textarea>` have changed.

<!-- example(text-field-autosize-textarea) -->

## Monitoring the autofill state of an `<input>`
### Monitoring the autofill state of an `<input>`

The `AutofillMonitor` is an injectable service that allows the user to monitor the autofill state of
an `<input>`. It has a `monitor` method that takes an element to monitor and returns an
Expand All @@ -40,7 +40,7 @@ using Angular Material, you should include this CSS with the `cdk-text-field` mi
@include cdk-text-field();
```

## Styling the autofill state of an `<input>`
### Styling the autofill state of an `<input>`

It can be difficult to override the browser default `background` and `color` properties on an
autofilled `<input>`. To make this simpler, the CDK includes a mixin `cdk-text-field-autofill-color`
Expand Down
2 changes: 1 addition & 1 deletion src/material/input/input.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ available in the CDK.
### Responding to changes in the autofill state of an `<input>`

The CDK provides
[utilities](https://material.angular.io/cdk/text-field/overview#monitoring-the-autofill-state-of-an-input)
[utilities](https://material.angular.io/cdk/text-field/overview#monitoring-the-autofill-state-of-an-code-lt-input-gt-code-)
for detecting when an input becomes autofilled and changing the appearance of the autofilled state.

### Accessibility
Expand Down