Skip to content

Commit

Permalink
[Chip] Document accessibility (#18271)
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Nov 18, 2019
1 parent a83a7b3 commit 8e84f06
Show file tree
Hide file tree
Showing 2 changed files with 324 additions and 418 deletions.
6 changes: 5 additions & 1 deletion docs/src/pages/components/chips/chips.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ gain depth while clicked or touched.

## Small Chip

You can use the `size` prop to define a small Chip.
You can use the `size` prop to define a small Chip.

### Default variant

Expand All @@ -55,3 +55,7 @@ You can use the `size` prop to define a small Chip.
## Chip Playground

{{"demo": "pages/components/chips/ChipsPlayground.js", "hideHeader": true}}

## Accessibility

If the Chip is deletable or clickable then it is a button in tab order. When the Chip is focused (e.g. when tabbing) releasing (`keyup` event) `Backspace` or `Delete` will call the `onDelete` handler while releasing `Escape` will blur the Chip.

0 comments on commit 8e84f06

Please sign in to comment.