Skip to content

Add hover-revealed close button to notification toasts - #6946

Merged
dhh merged 1 commit into
quattrofrom
notification-close-button
Aug 15, 2026
Merged

dhh merged 1 commit into
quattrofrom
notification-close-button

Conversation

@dhh

@dhh dhh commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

Hovering a notification toast now reveals a small ✕ in the upper-right corner of the card. Clicking it dismisses the notification without invoking its default action — same as right-click, but discoverable.

  • The button only renders while the card is hovered (100ms fade), so toasts look unchanged at rest.
  • It stacks above the full-card MouseArea, so the click never falls through to the invoke action.
  • The text column reserves the button's corner zone, so long first lines can't run under the ✕.

Verified live in the running shell (hover reveal, close-without-invoke, long-text clearance) and ./test/shell passes.

🤖 Generated with Claude Code

Copilot AI balanced review requested due to automatic review settings August 15, 2026 09:29

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds a hover-revealed close control to notification toasts without triggering their default action.

Changes:

  • Adds an animated close button with isolated click handling.
  • Reserves text space to prevent overlap.

Tip

If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@dhh
dhh merged commit 9b72edc into quattro Aug 15, 2026
4 checks passed
@dhh
dhh deleted the notification-close-button branch August 15, 2026 09:43
jnadeau207-collab pushed a commit to jnadeau207-collab/omarchy-7-ultimate that referenced this pull request Aug 26, 2026
nick1udwig pushed a commit to nick1udwig/omarchy that referenced this pull request Sep 9, 2026
@emirb emirb added this to the 4.5 milestone Oct 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants