diff --git a/lib/rules/button-name.json b/lib/rules/button-name.json index 826a3da068..db3b0b40ec 100644 --- a/lib/rules/button-name.json +++ b/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", @@ -22,4 +22,4 @@ "non-empty-title" ], "none": [] -} +} \ No newline at end of file diff --git a/test/integration/rules/button-name/button-name.html b/test/integration/rules/button-name/button-name.html index b95941611f..bb43145644 100644 --- a/test/integration/rules/button-name/button-name.html +++ b/test/integration/rules/button-name/button-name.html @@ -11,3 +11,5 @@ + +