Skip to content

fix: SW-2076 harmonize hover states — add missing button & select hovers#149

Open
boramyi-ts wants to merge 1 commit into
mainfrom
SW-2076-harmonize-button-hover
Open

fix: SW-2076 harmonize hover states — add missing button & select hovers#149
boramyi-ts wants to merge 1 commit into
mainfrom
SW-2076-harmonize-button-hover

Conversation

@boramyi-ts

@boramyi-ts boramyi-ts commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Summary

SW-2076 — "harmonize hover states for buttons; some have hover and some don't." Adds the missing hover states and tunes the secondary hover.

Changes

  • Default (primary) button[a]:hover:bg-primary/80hover:bg-primary/85. The hover was anchor-only, so a real <button variant="default"> (the most common button) had no hover at all. Now both buttons and anchors respond. (Also covers the default icon button.)
  • Secondary buttonhover:bg-secondary/80hover:bg-secondary/75 (light) + dark:hover:bg-secondary/85, for a more visible hover on the pale light-mode secondary.
  • Select trigger — added hover:bg-accent for light mode (previously only dark:hover:bg-input/50 — no light hover).

Scope note

The outline/ghost/toggle neutral-hover muted → accent unification (also shown in the prototype) is owned by SW-2071 (#140) and intentionally not duplicated here to avoid conflicts.

Before / after

Interactive prototype (mouse over each element; columns show the before vs after hover spec + tag):

📄 sw-2076-hover-before-after.html · download raw

SW-2076 hover before/after

yarn lint + yarn typecheck pass. Verified in Storybook: default button now carries hover:bg-primary/85, secondary hover:bg-secondary/75 dark:hover:bg-secondary/85, select hover:bg-accent.

🤖 Generated with Claude Code

- Default (primary) button: replace anchor-only [a]:hover:bg-primary/80
  with hover:bg-primary/85, so real <button>s (not just anchors) get a
  hover — this was the main gap ("some buttons have hover, some don't").
- Secondary button: hover:bg-secondary/75 (light) + dark:hover:bg-secondary/85
  for a more visible hover on the pale light-mode secondary.
- Select trigger: add hover:bg-accent for light mode (previously only
  dark:hover:bg-input/50 — no light hover).

The outline/ghost/toggle muted->accent unification is owned by SW-2071
(#140) and intentionally not duplicated here.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@boramyi-ts boramyi-ts requested review from a team as code owners June 23, 2026 20:46
@boramyi-ts boramyi-ts temporarily deployed to artifactory-prod June 23, 2026 20:46 — with GitHub Actions Inactive
@vercel

vercel Bot commented Jun 23, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
ts-lib-ui-kit-storybook Ignored Ignored Jun 23, 2026 8:46pm

Request Review

@github-actions

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🟢 Lines 94.74% (🎯 83%)
🟰 ±0%
20625 / 21770
🟢 Statements 94.74% (🎯 83%)
🟰 ±0%
20625 / 21770
🟢 Functions 93.58% (🎯 74%)
🟰 ±0%
919 / 982
🟢 Branches 88.69% (🎯 81%)
⬇️ -0.05%
3767 / 4247
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/components/ui/button.tsx 100%
🟰 ±0%
100%
🟰 ±0%
100%
🟰 ±0%
100%
🟰 ±0%
src/components/ui/select.tsx 100%
🟰 ±0%
100%
🟰 ±0%
100%
🟰 ±0%
100%
🟰 ±0%
Generated in workflow #818 for commit e7c96ea by the Vitest Coverage Report Action

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.

2 participants