Skip to content

Commit 1823141

Browse files
Splaktarmmalerba
authored andcommitted
docs(text-field,input): text-field headings don't have anchors (#16745)
update link from input docs to use new anchor Fixes #16744.
1 parent d3fd8b3 commit 1823141

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/cdk/text-field/text-field.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
The `text-field` package provides useful utilities for working with text input fields such as
22
`<input>` and `<textarea>`.
33

4-
## Automatically resizing a `<textarea>`
4+
### Automatically resizing a `<textarea>`
55

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

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

17-
## Monitoring the autofill state of an `<input>`
17+
### Monitoring the autofill state of an `<input>`
1818

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

43-
## Styling the autofill state of an `<input>`
43+
### Styling the autofill state of an `<input>`
4444

4545
It can be difficult to override the browser default `background` and `color` properties on an
4646
autofilled `<input>`. To make this simpler, the CDK includes a mixin `cdk-text-field-autofill-color`

src/material/input/input.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ available in the CDK.
8181
### Responding to changes in the autofill state of an `<input>`
8282

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

8787
### Accessibility

0 commit comments

Comments
 (0)