Skip to content

Commit a2aa5a3

Browse files
zelliottcopybara-github
authored andcommitted
docs(chips): update docs for new soft-disabled attribute that is replacing always-focusable
PiperOrigin-RevId: 652473957
1 parent 750b886 commit a2aa5a3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/components/chip.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,9 @@ Add an `aria-label` to chips whose labels need to be more descriptive.
176176

177177
### Focusable and disabled
178178

179-
By default, disabled chips are not focusable with the keyboard. Some use cases
180-
encourage focusability of disabled toolbar items to increase their
181-
discoverability.
179+
By default, disabled chips are not focusable with the keyboard, while
180+
"soft-disabled" chips are. Some use cases encourage focusability of disabled
181+
toolbar items to increase their discoverability.
182182

183183
See the
184184
[ARIA guidelines on focusability of disabled controls](https://www.w3.org/WAI/ARIA/apg/practices/keyboard-interface/#kbd_disabled_controls)<!-- {.external} -->
@@ -190,8 +190,8 @@ for guidance on when this is recommended.
190190
Disabled until text is selected. Since both are disabled by default, keep
191191
them focusable so that screen readers can discover the actions available.
192192
-->
193-
<md-assist-chip label="Copy" disabled always-focusable></md-assist-chip>
194-
<md-assist-chip label="Paste" disabled always-focusable></md-assist-chip>
193+
<md-assist-chip label="Copy" soft-disabled></md-assist-chip>
194+
<md-assist-chip label="Paste" soft-disabled></md-assist-chip>
195195
</md-chip-set>
196196
<md-outlined-text-field type="textarea"></md-outlined-text-field>
197197
```

0 commit comments

Comments
 (0)