Detailed overview of the accessibility features implemented in CoreUI Vue Chip, ensuring compliance with WAI-ARIA guidelines.
On this page
Accessibility
The Vue Chip component follows WAI-ARIA patterns for interactive widgets, ensuring the chip component is fully usable with keyboards and assistive technologies.
- Chips become focusable when
selectableorremovableis enabled. - A standalone selectable chip is exposed as a toggle button (
role="button") witharia-pressedkept in sync with.active. Inside a selectable Chip Set the set exposes a listbox and each chip becomes arole="option"witharia-selectedinstead. aria-disabled="true"is applied to disabled chips that carry a role; a role-less chip conveys the state through thedisabledclass and its removed interactivity.- Each
.chip-removebutton is named withariaRemoveLabeland the chip’s text,Remove <text>by default, so every remove button in a set has its own name. A string places the text at{label}, or appends it when there is no{label}; a function receives the text and returns the whole name. - Use descriptive
aria-labelattributes on chip containers when the chip component group has a meaningful role (e.g., “Applied filters”).