Robust
Last modified on Fri 21 Feb 2025

Content must be robust enough that it can be interpreted by a wide variety of user agents, including assistive technologies. - WCAG2.2

Guideline 4.1 - Compatible

Maximize compatibility with current and future user agents, including assistive technologies. - WCAG2.2

Success Criterion 4.1.2 - Name, Role, Value

For all UI components - which includes, but isn't limited to - form elements, links, and components generated by scripts:

Note that standard HTML controls, when used according to spec, are compliant with this success criterion out of the box, while custom UI components might not be.

Depending on the situation, you can use different techniques to comply with this success criterion.

If you're using a standard UI component in HTML:

Otherwise, use ARIA to provide accessibility support for your UI component by:

Note that in Firefox, ARIA attributes aren't properties of Element. Therefore, while they are readable from Element in some cases, they should be set using setAttribute and read using getAttribute

Note that using ARIA incorrectly can make websites unusable for users using assistive technologies - no ARIA is better than bad ARIA. Take a look at the section "ARIA and building accessible websites" for additional guidance on following this success criterion.

WordPress

The blocks implemented in Eightshift Frontend Libs are designed to be Level AA compliant.