Commit 807bfd3
committed
docs: explain escape-hatch scope + point at complementary axe rules
Re-examined the original #33 review concern ("role=presentation
escape hatch contradicts axe-core's presentation-role-conflict").
Tracing through actual cases shows the "narrowing" proposal was a
no-op — isInteractive already catches focusable hosts before the
escape hatch matters. The rule's behavior is correct; the docs
weren't documenting the scope clearly.
Added:
- Explicit "Escape hatches" section naming the two escapes
(aria-hidden truthy, role=presentation/none) with rationale.
- Valueless-aria-hidden contested-semantics note pointing at Scott
O'Hara's hidden-vs-none post for context.
- "Related checks outside this rule's scope" subsection naming
axe-core's presentation-role-conflict (distinct concern — role
conflict on focusable) and click-events-have-key-events
(distinct concern — handler without keyboard equivalent) so
users know to layer those on top when appropriate.
No rule-behavior changes.1 parent 65a3b47 commit 807bfd3
1 file changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
49 | 63 | | |
50 | 64 | | |
51 | 65 | | |
| |||
0 commit comments