An element that the keyboard can focus is hidden from assistive technology with aria-hidden
What it finds
aria-hidden="true" removes an element from what screen readers present, but a keyboard still reaches it if it is focusable. Users then land on something that is announced as nothing.
Reported are links with href, buttons, form controls and elements with a tabIndex of 0 or more that have aria-hidden set to true.
From the rule's source, hidden_focusable_element.rs.
Turn it on, off or suppress it
The rule runs from the recommended tier up. To turn it on in a lower tier, give it a level in tx0.toml:
[rules]
"tx0/ts:hidden-focusable-element" = "warning"To keep one finding, suppress it with a reason. tx0 suppress ID --reason "..." writes the comment on the line before the code:
// tx0: ignore[tx0/ts:hidden-focusable-element] reason="..."tx0 explain tx0/ts:hidden-focusable-element shows the same in the terminal. Found a false positive? Report it.