Skip to content

fix(prompts): don't show the fold hover on Plan & usage while the pointer is on its link - #1404

Merged
gkhngyk merged 1 commit into
mainfrom
fix/usage-fold-link-hover
Oct 23, 2026
Merged

gkhngyk merged 1 commit into
mainfrom
fix/usage-fold-link-hover

Conversation

@gkhngyk

@gkhngyk gkhngyk commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

Summary

On Prompts › Tracked, the "Plan & usage" bar folds and unfolds the usage cards and also holds a link to the plan page. While the pointer was on that link, the bar kept its hover background and Show/Hide its underline, so it looked as if a click would fold the cards.

  • The bar now drops its hover background while a link inside it is hovered (has-[a:hover]:bg-transparent).
  • Show/Hide drops its underline then too (group-has-[a:hover]:no-underline).
  • Hovering anywhere else on the bar works as before.

Both new rules win over the hover ones by specificity (:has(a:hover) adds an element and a pseudo-class), not by source order. I checked this on the CSS Tailwind 4.2 generates for these classes.

Related issue

Closes #1382

Type of change

  • feat — New feature
  • fix — Bug fix
  • chore — Maintenance / dependencies
  • docs — Documentation only
  • refactor — Code change that neither fixes a bug nor adds a feature
  • test — Adding or updating tests

How to test

  1. Open Prompts › Tracked with the usage bar visible.
  2. Hover the bar away from the link: it gets its hover background and Show underlines.
  3. Hover Plan & usage: the bar shows no hover background and Show isn't underlined.
  4. Check both the light and the dark theme.

Checklist

  • Branch follows the naming convention (feature/, fix/, chore/, docs/) — see CONTRIBUTING.md
  • Commits follow Conventional Commits
  • yarn lint passes (run from web/)
  • yarn typecheck passes (run from web/)
  • yarn format:check passes (run from web/)
  • Changes are focused — one concern per PR

🤖 Generated with Claude Code

…nter is on its link

The Plan & usage bar folds the usage cards, and it also holds the link to
the plan page. While the pointer was on that link, the bar kept its hover
background and Show/Hide its underline, so it looked as if a click would
fold the cards.

The bar now drops its hover background, and Show/Hide its underline, while
a link inside the bar is hovered. Hovering anywhere else works as before.

Closes #1382
@gkhngyk
gkhngyk merged commit 2e9bcd6 into main Oct 23, 2026
6 checks passed
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.

fix(prompts): don't show the fold hover on Plan & usage while the pointer is on its link

1 participant