We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d9f5a8 commit 0f21f27Copy full SHA for 0f21f27
rules/aria-label-misuse/index.js
@@ -26,7 +26,7 @@ function isValidUsage(node) {
26
module.exports = {
27
name: "htmlacademy/aria-label-misuse",
28
lint(node, rule_config, { report }) {
29
- if (is_tag_node(node) && !isValidUsage(node)) {
+ if (is_tag_node(node) && has_non_empty_attribute(node, 'aria-label') && !isValidUsage(node)) {
30
report({
31
position: node.loc,
32
message: "\"aria-label\" cannot be used on this element",
0 commit comments