Skip to content

Accessibility style guide

Overview the accessibility features of the Acronis UI Component Library and how to use them.

Introduction

Ui component Library provides a set of features to make the components accessible. Developing accessible components is a key part of the development process.

You should always consider two main aspects:

  • support accessibility when creating components
  • and test components for accessibility

Usually following features should be provided:

  • semantic markup;
  • ARIA attributes;
  • accessible keyboard navigation;
  • styling
  • focus management;

Fulfill WCAG 2.1 requirements for the following criteria:

Below we'll talk a little about how to use accessibility in your projects.

Basics

Learn basics of accessibility in web development. Start with Web Accessibility Initiative (WAI). And read Vue.js guideline Accessibility Guide.

Check source code with eslint

Check source code with eslint to find accessibility issues. Use eslint-plugin-vue-a11y

Test components with vitest-axe

Confirm that your components function correctly for all users by testing them with the vitest-axe. This approach emphasizes accessibility and user-friendly design.

Test with screen readers

Regularly use a screen reader to experience how your site is navigated audibly. This insight is invaluable for understanding the challenges faced by visually impaired users.

Check color contrast

Check color contrast with Color Contrast Checker. Ensure that text and interactive elements have sufficient contrast to be readable.

Use semantic HTML

Use semantic HTML elements to improve the accessibility of your website. Learn more about semantic HTML

Use ARIA attributes

Use ARIA attributes to improve the accessibility of your website. Learn more about ARIA attributes

Check web interfaces with Lighthouse

Use Lighthouse to audit your website's accessibility

MIT Licensed