Skip to content

Restore keyboard focus when closing the notification panel #42

Open

Description

@LunaStev

Motivation

The notification panel declares role=dialog and closes on Escape, but it has no trigger ref or focus-return handling. Removing a panel containing focus can leave keyboard users without a useful focus position.

Code references

Audit baseline: 50eb207.

Completion criteria

  • Give trigger/panel a consistent accessible relationship and choose non-modal dialog/popover behavior explicitly.
  • Move focus appropriately when opened by keyboard and restore it to the trigger on Escape dismissal.
  • Do not steal focus after choosing a notification and navigating to its destination.
  • Verify Tab/Shift+Tab/Escape and outside click in both themes and narrow layout.

Scope and dependencies

Difficulty: easy.

A localized component accessibility improvement; no redesign of the notification data API.

Backlog index: #12. Keep the change limited to this issue and include focused verification in the pull request.

Activity

  1. added
    enhancement
    good first issue
    help wanted
    notifications
    priority low
    needs testing
    on Sep 23, 2026
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

    enhancementgood first issuehelp wantedneeds testingnotificationspriority low

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions