Invalid Date

Accessibility for Frontend Developers

Accessibility = Better User Experience
What Constitutes Good Accessibility on a Website?

Depending on how users evaluate the website, manual testing can be beneficial for understanding the relationships between design elements before implementing the feature.

Accessibility in Frontend Development

Depending on the complexity of the application, adhering to the following accessibility standards is crucial to ensure inclusivity and legal compliance:

For detailed standards and guidelines, refer to the Web Content Accessibility Guidelines (WCAG) 2.1.

Automating Accessibility (a11y) Testing

Frontend architectures have numerous layers and design patterns that we employ to keep applications maintainable, structured, and flexible for growth, such as the Atomic Design methodology. But can we automate a11y testing within these complex systems?

Exploring Atomic Design with Accessibility

Atoms

Components that are isolated and capable of interacting with other components.

Molecules

Considerations for a seamless user experience.

Organisms

Combining molecules to create sections of the interface.

Pages

The assembly of organisms to form complete interfaces.

In our UI, we can use end-to-end (e2e) testing to automatically check accessibility.

axe-core jest-axe jest-axe

Playwright-e2e test

Set up CI in GitLab

Accessibility testing

stages:
  - accessibility
 
variables:
  a11y_urls: "https://about.gitlab.com https://gitlab.com/users/sign_in"
 
include:
  - template: "Verify/Accessibility.gitlab-ci.yml"