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
docs(material/chips): update chips docs based on aria-placeholder addition
Updates documentation on chips.md regarding proper placement of the input
element as a sibiling of as opposed to being a child. Also
adds an explanation of the new implementation of ariaPlaceholder on mat-chip
input.
Copy file name to clipboardExpand all lines: src/material/chips/chips.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -139,7 +139,7 @@ The chips components support 3 user interaction patterns, each with its own cont
139
139
140
140
#### Text Entry
141
141
142
-
`<mat-chip-grid>` and `<mat-chip-row>` : These elements implement a grid accessibility pattern. Use them as part of a free form input that allows users to enter text to add chips.
142
+
`<mat-chip-grid>` and `<mat-chip-row>` : These elements implement a grid accessibility pattern. Use them as part of a free form input that allows users to enter text to add chips. Note : be sure to have the input element be a sibling of mat-chip-grid to ensure accessibility of the input element by accessibility devices such as Voice Control. The input will have a default `aria-placeholder` value of "Enter input" if no `ariaPlaceholder` value or `placeholder` attribute value is applied. This is to provide a calculable name for accessibility controls.
143
143
144
144
```html
145
145
<mat-form-field>
@@ -153,10 +153,11 @@ The chips components support 3 user interaction patterns, each with its own cont
0 commit comments