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

fix(commons/aria): allow aria-required on radio and checkbox roles #629

Merged
merged 4 commits into from
Dec 11, 2017
Merged

fix(commons/aria): allow aria-required on radio and checkbox roles #629

merged 4 commits into from
Dec 11, 2017

Conversation

KittyGiraudel
Copy link
Contributor

This pull-request closes #540.

@CLAassistant
Copy link

CLAassistant commented Dec 1, 2017

CLA assistant check
All committers have signed the CLA.

@WilcoFiers
Copy link
Contributor

I think we should have this for checkbox as well. Can you also add one or two tests?

@KittyGiraudel
Copy link
Contributor Author

I wasn‘t sure if you wanted it for checkbox. Happy to add it. Not sure how to add the tests though. Care to put me on the right track?

@KittyGiraudel KittyGiraudel changed the title fix(commons/aria): allow aria-required on radio role fix(commons/aria): allow aria-required on radio and checkbox roles Dec 1, 2017
@KittyGiraudel
Copy link
Contributor Author

I run through these files. I’m not sure what kind of test you would like for allowing aria-required attribute on radio and checkbox roles. I didn’t find a suite I could extend with that kind of check.

Do you test all allowed attributes somewhere maybe?

@WilcoFiers
Copy link
Contributor

We're not testing every attribute, no. But we are adding tests for every PR so that we can prevent regression on new issues. On second thought, maybe adding it as an integration tests is better:

https://github.com/dequelabs/axe-core/blob/develop/test/integration/rules/aria-allowed-attr/passes.html
https://github.com/dequelabs/axe-core/blob/develop/test/integration/rules/aria-allowed-attr/passes.json

Does that help?

@KittyGiraudel
Copy link
Contributor Author

KittyGiraudel commented Dec 1, 2017

I just committed something that I thought could be useful. Is it enough or would you like me to check integration tests as well?

Edit: I’m going to add integration tests as well.

Copy link
Contributor

@WilcoFiers WilcoFiers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. There was one comment from Dylan in the original issue. @dylanb Any objections to doing this?

@WilcoFiers WilcoFiers merged commit 28fe4d6 into dequelabs:develop Dec 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants