Chip
On this page
Implementation
Ensure that any interactive elements can be navigated to and interacted with using a keyboard or other assistive technologies like a screen reader.
Accessible label
You can provide an accessible label to a chip group by using the following code. If no accessible label is provided, the legend will be Filter by:
.
<rh-chip-group accessible-label="Filter comments">...</rh-chip-group>
Keyboard Interaction
Chips in a chip group can be can be navigated with a keyboard.
Key | Result |
---|---|
Tab |
|
Shift + Tab |
|
Enter |
|
Focus order
Focus moves from left to right and top to bottom when chips are stacked.
Touch targets
Even with a few letters each, chips are adequately spaced for optimal touch targets.
ARIA Authoring Practices Guide (APG)
Learn to use the accessibility semantics defined by the Accessible Rich Internet Application (ARIA) specification to create accessible web experiences.
Web Content Accessibility Guidelines
Understanding documents provide detailed explanations for Web Content Accessibility Guidelines (WCAG) guidelines and success criteria.
- SC 2.1.1 Keyboard (Level A)
- SC 2.1.3 Keyboard (no exception) (Level AAA)
- SC 2.4.3 Focus order (Level A)
- SC 2.5.5 Target size (Level AAA)
Other libraries
To learn more about our other libraries, visit this page.
Feedback
To give feedback about anything on this page, contact us.