Skip to content

Commit 6db28bc

Browse files
authoredDec 4, 2019
fix(link-name): test role=link when there is no href (dequelabs#1921)
1 parent d11383a commit 6db28bc

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed
 

‎lib/rules/link-name.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"id": "link-name",
3-
"selector": "a[href], [role=link][href]",
4-
"matches": "role-not-button-matches.js",
3+
"selector": "a[href]:not([role=button]), [role=link]",
54
"tags": [
65
"cat.name-role-value",
76
"wcag2a",
@@ -22,5 +21,7 @@
2221
"role-presentation",
2322
"role-none"
2423
],
25-
"none": ["focusable-no-name"]
26-
}
24+
"none": [
25+
"focusable-no-name"
26+
]
27+
}

‎lib/rules/role-not-button-matches.js

-1
This file was deleted.

0 commit comments

Comments
 (0)