Skip to content

bug(cdkTrapFocus): Sets aria-hidden to true #19502

@jrood

Description

@jrood

Expected Behavior

cdkTrapFocus should not set aria-hidden to true because hidden area elements are not supposed to have focusable content https://dequeuniversity.com/rules/axe/3.2/aria-hidden-focus?application=AxeChrome but the point of having a focus trap is so that you can use it with focusable content.

Actual Behavior

cdkTrapFocus sets aria-hidden to true
See comments on this commit f66302d

Environment

  • CDK/Material:

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