diff --git a/__tests__/spelling-ignore.yml b/__tests__/spelling-ignore.yml index 3a0101090e..5fe2885729 100644 --- a/__tests__/spelling-ignore.yml +++ b/__tests__/spelling-ignore.yml @@ -239,6 +239,7 @@ - unitless - luminance - disambiguated +- superclass - grey # Parts of Unicode diff --git a/_rules/aria-state-or-property-permitted-5c01ea.md b/_rules/aria-state-or-property-permitted-5c01ea.md index e33da0e7de..c481047c29 100755 --- a/_rules/aria-state-or-property-permitted-5c01ea.md +++ b/_rules/aria-state-or-property-permitted-5c01ea.md @@ -109,7 +109,7 @@ The `aria-busy` [state][] is a [global][] [state][] that is [supported][] by all #### Passed Example 4 -The `aria-label` [property][] is a [global][] [property][]. It is allowed on any [semantic role][]. +The `aria-label` [property][] is a [global][] [property][]. It is allowed on any [semantic role][], except where specifically prohibited. ```html
@@ -149,7 +149,7 @@ The `aria-controls` [property][] is [required][] for the [semantic][semantic rol #### Passed Example 9 -The `aria-label` [property][] is [global][]. It is allowed on any [semantic role][], including roles from the [WAI-ARIA Graphics Module](https://www.w3.org/TR/graphics-aria-1.0). This rule is applicable to SVG elements. +The `aria-label` [property][] is [global][]. It is allowed on any [semantic role][], except where specifically prohibited, including roles from the [WAI-ARIA Graphics Module](https://www.w3.org/TR/graphics-aria-1.0). This rule is applicable to SVG elements. ```html @@ -173,6 +173,29 @@ This `input` element does not have an [explicit role][] of `textbox`, but the `a ``` +#### Passed Example 12 + +This `div` element has an [explicit role][] of `switch`; the `aria-required` [property][] is [inherited][] from the `checkbox` [superclass role](https://www.w3.org/TR/wai-aria-1.2/#superclassrole). + +```html +
+ Notifications + + + + + +
+``` + +#### Passed Example 13 + +This `div` element has an [explicit role][] of `separator`. The `aria-valuemin`, `aria-valuemax` and `aria-valuenow` [properties][property] are [supported][] for the `separator` role when the element is [focusable][]. + +```html +
My separator
+``` + ### Failed #### Failed Example 1 @@ -199,6 +222,14 @@ The `aria-label` property is [prohibited][] for an element with a `generic` role
``` +#### Failed Example 4 + +The `aria-label` property is [prohibited][] for an element with a `paragraph` role. + +```html +
+``` + ### Inapplicable #### Inapplicable Example 1