diff --git a/lib/rules/aria-toggle-field-name.json b/lib/rules/aria-toggle-field-name.json index baccc7fafc..9417897965 100644 --- a/lib/rules/aria-toggle-field-name.json +++ b/lib/rules/aria-toggle-field-name.json @@ -1,6 +1,6 @@ { "id": "aria-toggle-field-name", - "selector": "[role=\"checkbox\"], [role=\"menuitemcheckbox\"], [role=\"menuitemradio\"], [role=\"radio\"], [role=\"switch\"]", + "selector": "[role=\"checkbox\"], [role=\"menuitemcheckbox\"], [role=\"menuitemradio\"], [role=\"radio\"], [role=\"switch\"], [role=\"option\"]", "matches": "no-naming-method-matches", "tags": ["cat.aria", "wcag2a", "wcag412"], "metadata": { diff --git a/package-lock.json b/package-lock.json index cd4d27913f..d0aac0541b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3705,7 +3705,8 @@ "esbuild": { "version": "0.7.19", "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.7.19.tgz", - "integrity": "sha512-0Ur8ZtuRPwJMj4+VjRLqn5z88WXf+2etZhe4dBA6eYFcdviQefb+Vrd59cTk0VXg08NU/BnAMkalCMHI8lig/A==" + "integrity": "sha512-0Ur8ZtuRPwJMj4+VjRLqn5z88WXf+2etZhe4dBA6eYFcdviQefb+Vrd59cTk0VXg08NU/BnAMkalCMHI8lig/A==", + "dev": true }, "escalade": { "version": "3.0.1", diff --git a/test/integration/rules/aria-toggle-field-name/aria-toggle-field-name.html b/test/integration/rules/aria-toggle-field-name/aria-toggle-field-name.html index 45baa124f8..4f629d5360 100644 --- a/test/integration/rules/aria-toggle-field-name/aria-toggle-field-name.html +++ b/test/integration/rules/aria-toggle-field-name/aria-toggle-field-name.html @@ -40,6 +40,9 @@ off on +