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

feat(new-rule): ARIA links, buttons, menuitems have an accessible name #2571

Merged
merged 3 commits into from Oct 23, 2020

Conversation

WilcoFiers
Copy link
Contributor

@WilcoFiers WilcoFiers commented Oct 20, 2020

Move ARIA link and button testing to this new aria-command-name rule, out of link-name / button-name. This closes issue #2582 and #2577.

Requires #2584 to be merged.

Part of #2421

Reviewer checks

Required fields, to be filled out by PR reviewer(s)

  • Follows the commit message policy, appropriate for next version
  • Code is reviewed for security

@WilcoFiers WilcoFiers requested a review from a team as a code owner October 20, 2020 19:50
Comment on lines 24 to 29
<script src="area-alt.js"></script>
<script src="aria-input-field-name.js"></script>
<script src="aria-menuitem-name.js"></script>
<script src="aria-progressbar-name.js"></script>
<script src="aria-toggle-field-name.js"></script>
<script src="aria-tooltip-name.js"></script>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We need to think of a way to make sure we don't forget to do this. Any thoughts?

Copy link
Contributor

Choose a reason for hiding this comment

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

We could generate the file like we do the other test html files. I've not looked into that part of the build but it should be possible.

straker
straker previously approved these changes Oct 21, 2020
Comment on lines 24 to 29
<script src="area-alt.js"></script>
<script src="aria-input-field-name.js"></script>
<script src="aria-menuitem-name.js"></script>
<script src="aria-progressbar-name.js"></script>
<script src="aria-toggle-field-name.js"></script>
<script src="aria-tooltip-name.js"></script>
Copy link
Contributor

Choose a reason for hiding this comment

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

We could generate the file like we do the other test html files. I've not looked into that part of the build but it should be possible.

@WilcoFiers WilcoFiers dismissed straker’s stale review October 22, 2020 10:20

This needs more work

@WilcoFiers WilcoFiers marked this pull request as draft October 22, 2020 15:40
@WilcoFiers WilcoFiers changed the title feat(new-rule): menuitems have an accessible name feat(new-rule): links, buttons, menuitems have an accessible name Oct 22, 2020
@WilcoFiers WilcoFiers changed the title feat(new-rule): links, buttons, menuitems have an accessible name feat(new-rule): ARIA links, buttons, menuitems have an accessible name Oct 22, 2020
@WilcoFiers WilcoFiers marked this pull request as ready for review October 22, 2020 19:38
Comment on lines -202 to +204
conform: function hasCategoryTag(tags) { return tags.some(tag => tag.includes('cat.')) },
conform: function hasCategoryTag(tags) {
return tags.some(tag => tag.includes('cat.'));
},
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm, not sure how that didn't make it in last PR. Shouldn't matter.

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 this pull request may close these issues.

None yet

2 participants