Skip to content

Commit 3aba02c

Browse files
WilcoFiersstraker
authored andcommitted
fix: input[role=button][value='correct'] should pass (#1897)
1 parent ce73af9 commit 3aba02c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/rules/button-name.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"id": "button-name",
3-
"selector": "button, [role=\"button\"]",
3+
"selector": "button, [role=\"button\"]:not(input)",
44
"tags": [
55
"cat.name-role-value",
66
"wcag2a",
@@ -22,4 +22,4 @@
2222
"non-empty-title"
2323
],
2424
"none": []
25-
}
25+
}

test/integration/rules/button-name/button-name.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@
1111
<button id="combo" aria-label="Aria Name">Name</button>
1212
<button id="buttonTitle" title="Title"></button>
1313
<button id="buttonvalue" value="foo" tabindex="-1"></button>
14+
15+
<input type="submit" value="submit" role="button" id="ignored" />

0 commit comments

Comments
 (0)