Keyboard shortcut: Ctrl + K
Get started

Accessibility

Keyboard interaction, accessible names, focus styles and motion preferences in Vectis UI.

Component behaviour

  • Keyboard and focus: Interactive components support keyboard use. Modal dialogs keep focus inside while open and return it to the trigger when closed. Each component’s documentation describes its keyboard controls.
  • ARIA: Components expose their roles, states and relationships to assistive technology. Status messages use live regions where needed.
  • Accessible names: Provide a name for each control. VIconButton requires a label prop that describes the action, such as “Search”.
  • Contrast: The default themes provide text and focus colours for light and dark backgrounds. Recheck contrast when overriding them.

Test your application’s keyboard flows, accessible names and screen reader output. Component checks do not cover every combination of content and custom styles.

Focus

Keep focus indicators visible when customising styles. Check that surrounding containers do not clip them. Field action buttons use an inset outline.

Use Tab to move through the controls. Text fields highlight their border; the clear button has its own focus outline.

Validation

Form fields use :user-invalid for native validation feedback after user interaction. Use the invalid prop for application errors, such as a server response, and provide an error message.

Motion

With prefers-reduced-motion, components remove or reduce animations. VSpinner keeps rotating at a slower speed to indicate ongoing activity.

Forced colours

In forced-colours mode:

  • Icons: Built-in SVG icons use currentColor to follow the text colour. Check any custom icons or images you provide.
  • Separators: CSS borders keep separators visible when the browser replaces background colours.