Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

feat(rome_js_analyze): complete rule useAriaPropsForRole #3902

Merged
merged 6 commits into from
Dec 2, 2022

Conversation

ematipico
Copy link
Contributor

Summary

Closes #3822

This PR adds all the ARIA roles to the code base, I created a macro to facilitate the code generation, but it doesn't add all the metadata for each role. The metadata added are only the required attributes for each rule, the information needed to complete this rule.

This is the map of metadata.

Test Plan

Test cases are exhaustive, meaning that they cover all the roles that require some ARIA attribute, they have been ported from the former test suite.

@ematipico ematipico requested review from leops, xunilrj and a team as code owners November 30, 2022 10:58
@netlify
Copy link

netlify bot commented Nov 30, 2022

Deploy Preview for docs-rometools ready!

Name Link
🔨 Latest commit 2d30a43
🔍 Latest deploy log https://app.netlify.com/sites/docs-rometools/deploys/6388d4bd7307610009b5f18c
😎 Deploy Preview https://deploy-preview-3902--docs-rometools.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@github-actions
Copy link

Parser conformance results on ubuntu-latest

js/262

Test result main count This PR count Difference
Total 45879 45879 0
Passed 44936 44936 0
Failed 943 943 0
Panics 0 0 0
Coverage 97.94% 97.94% 0.00%

jsx/babel

Test result main count This PR count Difference
Total 39 39 0
Passed 36 36 0
Failed 3 3 0
Panics 0 0 0
Coverage 92.31% 92.31% 0.00%

symbols/microsoft

Test result main count This PR count Difference
Total 5946 5946 0
Passed 1757 1757 0
Failed 4189 4189 0
Panics 0 0 0
Coverage 29.55% 29.55% 0.00%

ts/babel

Test result main count This PR count Difference
Total 588 588 0
Passed 519 519 0
Failed 69 69 0
Panics 0 0 0
Coverage 88.27% 88.27% 0.00%

ts/microsoft

Test result main count This PR count Difference
Total 16257 16257 0
Passed 12397 12397 0
Failed 3860 3860 0
Panics 0 0 0
Coverage 76.26% 76.26% 0.00%

crates/rome_aria/src/macros.rs Outdated Show resolved Hide resolved
crates/rome_aria/src/roles.rs Outdated Show resolved Hide resolved
@ematipico ematipico merged commit 52996d8 into main Dec 2, 2022
@ematipico ematipico deleted the feat/use-aria-props-for-role branch December 2, 2022 13:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

useAriaPropsForRole
3 participants