Skip to content

aria-hidden-focus rule is broken by TabsterDummyInput element #288

Open

Description

@sarahhouse

While testing our product that uses tabster, the Accessibility Insights fast pass failed because the aria-hidden-focus rule is being broken by one of tabster's components. Our component is a Toolbar that uses tabster to enable circular arrow navigation in the toolbar, and the element breaking this rule is a that gets added above and below the children of the toolbar.

According to the rule, elements that have "aria-hidden" = true should not be focusable. The element has aria-hidden=true and tabindex=0, which are contradictory. Looks like this is being set here:

input.setAttribute(Types.TabsterDummyInputAttributeName, "");
.

Link to the broken rule: https://accessibilityinsights.io/info-examples/web/aria-hidden-focus/

Activity

  1. mshoho commented on Jul 19, 2023

    @mshoho
    Member

    sarahhouse this particular issue should be added to the list of exceptions for Accessibility Insights — elements with data-tabster-dummy attribute are intentionally focusable with aria-hidden. Their only purpose is to redirect the focus to the proper element immediately after they receive focus. If they don't have aria-hidden, the screen readers will choke starting to announce them.

  2. MeghaY commented on Jan 8, 2025

    @MeghaY

    Marat Abdullin (@mshoho) Facing the same issue in the ReferenceListV2 component of Fluent 9. Is this added to the Accessibility Insights exception list. Any other resolution for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions