Skip to content

Commit

Permalink
fix: input[role=button][value='correct'] should pass (#1897)
Browse files Browse the repository at this point in the history
  • Loading branch information
WilcoFiers committed Nov 14, 2019
1 parent d544856 commit 4635fef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rules/button-name.json
@@ -1,6 +1,6 @@
{
"id": "button-name",
"selector": "button, [role=\"button\"]",
"selector": "button, [role=\"button\"]:not(input)",
"tags": [
"cat.name-role-value",
"wcag2a",
Expand All @@ -22,4 +22,4 @@
"non-empty-title"
],
"none": []
}
}
2 changes: 2 additions & 0 deletions test/integration/rules/button-name/button-name.html
Expand Up @@ -11,3 +11,5 @@
<button id="combo" aria-label="Aria Name">Name</button>
<button id="buttonTitle" title="Title"></button>
<button id="buttonvalue" value="foo" tabindex="-1"></button>

<input type="submit" value="submit" role="button" id="ignored" />

0 comments on commit 4635fef

Please sign in to comment.