Skip to content

Conversation

@jeremylongshore
Copy link

Summary

Fixes the double hover effect on destructive dropdown menu items where both the parent DropdownMenuItem's subtle gray background and the child DropdownItem's error red background appeared simultaneously on hover.

Root cause: DropdownMenuItem applied hover:bg-subtle unconditionally, conflicting with DropdownItem's hover:bg-error for destructive items.

Solution: Remove hover:bg-subtle from DropdownMenuItem. The child DropdownItem component already handles hover backgrounds appropriately:

  • Non-destructive items: hover:bg-subtle
  • Destructive items: hover:bg-error

This is a minimal, targeted fix that doesn't affect other styling or behavior.

Before/After

Before: Both backgrounds visible (gray + red layered)
After: Only the appropriate background (red for destructive, gray for non-destructive)

Test plan

  • Tested destructive actions in dropdown menus (Delete, Leave team, etc.)
  • Verified non-destructive items still show subtle hover background
  • Confirmed focus styles are preserved for keyboard navigation

Closes #26256

🤖 Generated with Claude Code

Remove `hover:bg-subtle` from DropdownMenuItem to prevent visual conflict
with DropdownItem's hover states. The child DropdownItem component already
handles hover backgrounds appropriately:
- Non-destructive items: hover:bg-subtle
- Destructive items: hover:bg-error

This fixes the layered hover effect where both parent and child backgrounds
were visible simultaneously on destructive actions.

Closes calcom#26256

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@jeremylongshore jeremylongshore requested review from a team as code owners January 4, 2026 22:25
@vercel
Copy link

vercel bot commented Jan 4, 2026

@jeremylongshore is attempting to deploy a commit to the cal Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions bot added the 🐛 bug Something isn't working label Jan 4, 2026
@graphite-app graphite-app bot added the community Created by Linear-GitHub Sync label Jan 4, 2026
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 1 file

@github-actions
Copy link
Contributor

This PR has been marked as stale due to inactivity. If you're still working on it or need any help, please let us know or update the PR to keep it active.

@github-actions github-actions bot added the Stale label Jan 12, 2026
@anikdhabal
Copy link
Contributor

It's not fixing the issue, thanks for your work

@anikdhabal anikdhabal closed this Jan 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐛 bug Something isn't working community Created by Linear-GitHub Sync size/XS Stale

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(ui): the dropdown menu has double hover causing a weird bug in the destructive actions on hover.

2 participants