-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
Support for SVG implicit role #181
Comments
@PaulSearcy I'm not opposed at all. You'll want to introduce a new directory -- You can add an aria-query/scripts/breakUpAriaJSON.js Line 246 in 29d5fb2
graphics- roles into their own directory.
Run this script to parse the JSON file that holds all the role definitions to create the etc directory output:
You'll end up hand-writing a lot of information into https://github.com/A11yance/aria-query/blob/main/scripts/roles.json, then running that script to create the src files. I'm happy to review an in-progress PR to let you know if you're headed in the right direction. |
It would be great if you could add this. W3C was added to the ARIA semantics in February 2021: |
As raised by testing-library/dom-testing-library#1295, unfortunately neither #338 nor #444 fully resolved the OP. Although these changes added the graphics roles to There is a larger can of worms that is supporting the full set of implicit roles for SVG elements as set out by https://www.w3.org/TR/svg-aam-1.0/#mapping_role_table, but that firmly feels like a separate issue that needs some thought given the number of outstanding issues and WIP status of the SVG-AAM specification. |
Coming from a downstream package (testing-library) to make a request to add the implicit role, graphics-document, for svgs.
https://www.w3.org/TR/html-aria/#docconformance
Just a little thing, not a big deal. I'm also going to take a look into the code here to see if it's feasible for me to make a PR!
The text was updated successfully, but these errors were encountered: