-
Notifications
You must be signed in to change notification settings - Fork 834
Open
Labels
fixBug fixesBug fixesrulesIssue or false result from an axe-core ruleIssue or false result from an axe-core rule
Description
Product
axe-core
Product Version
4.10.0
Latest Version
- I have tested the issue with the latest version of the product
Issue Description
Expectation
aXe should only report actual problems. Focus guards in libs like floating-ui should not cause an aXe violation.
Actual
Focus guards that use tabIndex=0
while being aria-hidden=true
cause an aXe violation:
Focusable content should have
tabindex="-1"
or be removed from DOM
How to Reproduce
Show a tooltip with floating-ui, or alternatively add focus guards manually:
<span data-type="outside" tabindex="0" aria-hidden="true" data-floating-ui-focus-guard="" style="border: 0px; clip: rect (0px, 0px, 0px, 0px); height: 1px; margin: -1px; overflow: hidden; padding: 0px; position: fixed; white-space: nowrap; width: 1px; top: 0px; left: 0px;"></ span>
Additional context
Metadata
Metadata
Assignees
Labels
fixBug fixesBug fixesrulesIssue or false result from an axe-core ruleIssue or false result from an axe-core rule