File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,9 @@ const nonInteractiveRoles = new Set(roleKeys
26
26
// 'toolbar' does not descend from widget, but it does support
27
27
// aria-activedescendant, thus in practice we treat it as a widget.
28
28
&& name !== 'toolbar'
29
+ // This role is meant to have no semantic value.
30
+ // @see https://www.w3.org/TR/wai-aria-1.2/#generic
31
+ && name !== 'generic'
29
32
&& ! role . superClass . some ( ( classes ) => includes ( classes , 'widget' ) )
30
33
) ;
31
34
} ) . concat (
@@ -42,6 +45,9 @@ const interactiveRoles = new Set(roleKeys
42
45
// The `progressbar` is descended from `widget`, but in practice, its
43
46
// value is always `readonly`, so we treat it as a non-interactive role.
44
47
&& name !== 'progressbar'
48
+ // This role is meant to have no semantic value.
49
+ // @see https://www.w3.org/TR/wai-aria-1.2/#generic
50
+ && name !== 'generic'
45
51
&& role . superClass . some ( ( classes ) => includes ( classes , 'widget' ) )
46
52
) ;
47
53
} ) . concat (
You can’t perform that action at this time.
0 commit comments