Detailed overview of the accessibility features implemented in CoreUI Vue Search Button, ensuring compliance with WAI-ARIA guidelines.
On this page
Accessibility
Accessibility is an important part of the Search Button design. The component includes built-in behaviors that help preserve expected keyboard interaction and reduce conflicts with assistive technologies, but accessible results still depend on choosing the right markup and shortcut combinations.
Built-in accessibility behavior
- Native button semantics are preserved because
<CSearchButton>renders a<button type="button">by default. - Rendered
.search-button-keysare treated as visual hints only and are hidden from assistive technologies. - Plain typing inside editable fields does not trigger the component unless the shortcut also includes
metaorctrl. - The component keeps standard button keyboard behavior such as
EnterandSpace.
Author responsibilities
- Choose shortcuts carefully and avoid overriding common browser or system shortcuts unless that behavior is intentional and clearly communicated.
- Make sure the visible button label clearly describes the action, for example
Search,Open search, orCommand palette. - Mark decorative icons as
aria-hidden="true"when you provide a custom icon through theiconslot.