Skip to content

[Bug]: Screen readers see two "Notifications" landmarks #31719

Closed

Description

@nibarAhmed

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/web

Steps to reproduce

  1. Open T3 Code (web or desktop) with NVDA running.
  2. Open the landmarks list (NVDA+F7, Landmarks), or press D to move between landmarks.

Expected behavior

One "Notifications" landmark, for the corner toasts.

Actual behavior

There are two landmarks with the same name, "Notifications region". Both are present even when no toast is showing.

The root route mounts two toast providers (apps/web/src/routes/__root.tsx): ToastProvider and AnchoredToastProvider. Each one renders a Base UI Toast.Viewport (apps/web/src/components/ui/toast.tsx), and Base UI gives every viewport role="region" and aria-label="Notifications" by default. The anchored viewport only holds small toasts shown next to the button that triggered them (such as "Copied"), so it does not need to be a landmark. It still needs to stay a live region so those toasts are announced.

Impact

Minor bug or occasional failure

Version or commit

main @ 25b5329

Environment

Windows 11, NVDA

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