Skip to content

aria-hidden strategy outdated with aria-modal="true" #948

@naomiaro

Description

@naomiaro

Describe the bug

"Applying the aria-modal property to the dialog element replaces the technique of using aria-hidden on the background for informing assistive technologies that content outside a dialog is inert."

https://www.w3.org/TR/wai-aria-practices-1.1/examples/dialog-modal/dialog.html#rps_label

To Reproduce

  1. Go to https://react-bootstrap.github.io/react-overlays/api/Modal
  2. Click onOpen Modal
  3. aria-hidden is added to the background content with id="___gatsby"

Expected behavior

aria-hidden should not be added to the background content with id="___gatsby"

Screenshots

If applicable, add screenshots to help explain your problem.

Screenshot 2021-05-17 at 2 46 46 PM

Environment (please complete the following information)

  • Operating System: [macOS]
  • Browser, Version [Chrome 90]
  • react-overlays Version [Current on the docs website]

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