Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow role="application" as an interactive ARIA role #8943

Open
oscarhermoso opened this issue Jul 9, 2023 · 0 comments · May be fixed by #8975
Open

Allow role="application" as an interactive ARIA role #8943

oscarhermoso opened this issue Jul 9, 2023 · 0 comments · May be fixed by #8975

Comments

@oscarhermoso
Copy link

oscarhermoso commented Jul 9, 2023

Describe the problem

Unable to resolve accessibility warnings (no-interactive-element-to-noninteractive-role) for elements that are not described by exisiting ARIA widget roles

For example, the Cropper component from Svelte Easy Crop does match any of the other ARIA widget role descriptions.

Describe the proposed solution

This can be resolved by also allowing role="application" as an interactive role.

This is allowed by the spec:

When there is a need to create an element with an interaction model that is not supported by any of the WAI-ARIA widget roles, authors MAY give that element role application.

And also an see example of it out in the wild:

https://www.darins.page/articles/screen-readers-drag-drop-1#what-were-testing

Alternatives considered

N/A

Importance

nice to have

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant