Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

False positive: 'Nested-interactive' rule fails on nested elements with negative tabindex #3231

Closed
iamrafan opened this issue Oct 21, 2021 · 1 comment

Comments

@iamrafan
Copy link
Contributor

The nested-interactive rule fails on the following example despite the parent button working as expected with screen readers and Dragon

<button id="user_info_dropdown">
    <div aria-hidden="true">
        <div tabindex="-1" role="presentation">
            <span>Name</span>
        </div>
    </div>
    <span>User menu</span>
</button>

Product: axe-core

Expectation: Not to fail nested-interative rule on this example

Motivation: I do not think there is a need for the nested elements here to be available to ATs


axe-core version:4.3.3
@straker
Copy link
Contributor

straker commented Oct 25, 2021

This example has similar problems to #3227 in that if you read line by line or letter by letter using VoiceOver and Safari, the button will not become focused when getting to the Name text, but will only become focused when hitting the User Menu text.

As such, I'm going to close as this is correctly flagging as a problem.

@straker straker closed this as completed Oct 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants