react-a11y icon indicating copy to clipboard operation
react-a11y copied to clipboard

Label checks should not apply to elements with role of "separator"

Open d-reinhold opened this issue 10 years ago • 1 comments

Separator role is a presentation role that doesn't need an additional label.

See https://developer.mozilla.org/en-US/docs/Web/Accessibility/AT-APIs/Gecko/Roles/ROLE_SEPARATOR, http://www.w3.org/TR/wai-aria/roles#separator

d-reinhold avatar Aug 25 '15 00:08 d-reinhold

It looks like we could use a whole new rule module for validating role="separator" based on the links you posted. It looks like we need to identify when the element is not focusable and is therefore seen as a structural element versus when it is focusable and is seen as an interactive widget. Based on each the rules will vary.

Specifically as it applies to whether a label is required or not it looks like when the element is focusable and there is more than one a label is required:

In applications where there is more than one focusable separator, authors SHOULD provide an accessible name for each one.

So it looks like it's more complicated then just not requiring a label whenever there is role="separator".

erin-doyle avatar Nov 28 '17 12:11 erin-doyle