Skip to content

Commit e839c57

Browse files
WilcoFiersstraker
authored andcommitted
fix(link-name): test role=link when there is no href (#1921)
1 parent 0b7522c commit e839c57

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/rules/link-name.json

Lines changed: 5 additions & 4 deletions
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

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)