Commit 187c89b
committed
refactor: remove tooltip from INTERACTIVE_ROLES per WAI-ARIA 1.2 §5.3.3
Per WAI-ARIA 1.2 §5.3.3 — Document Structure Roles:
https://www.w3.org/TR/wai-aria-1.2/#tooltip
Tooltip is explicitly listed under document-structure roles (alongside
img, note, paragraph, etc.), not widget roles. The spec notes:
'Document structures are not usually interactive.'
jsx-a11y and lit-a11y agree — neither adds tooltip to their interactive-
role set (both add only toolbar).
The one test case expecting tooltip to be treated as interactive moves
accordingly. aria-query's superClass for tooltip is structure/section,
which the narrow widget-ancestor filter correctly excludes.1 parent c6fb02f commit 187c89b
2 files changed
Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
| 70 | + | |
70 | 71 | | |
71 | | - | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
0 commit comments