Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,8 @@
}

/* Focus states for accessibility */
.notification-action-btn:focus,
.notification-close-btn:focus {
.notification-action-btn:focus-visible,
.notification-close-btn:focus-visible {
outline: 2px solid #667eea;
outline-offset: 2px;
}
Comment on lines +284 to 288
Copy link

Copilot AI Apr 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Switching these rules from :focus to :focus-visible won’t actually prevent focus outlines on mouse click in this app, because the global stylesheet still applies button:focus { outline: ... } (see frontend/src/index.css:50-53). On mouse click, :focus-visible won’t match, so the global :focus outline will show instead. To achieve the intended behavior while preserving fallback, consider keeping a :focus style for non-supporting browsers and adding a :focus:not(:focus-visible) override to remove the outline for mouse/touch focus (or otherwise overriding the global button:focus for these button classes).

Copilot uses AI. Check for mistakes.
Expand Down
Loading