Skip to content

revert: restore the accordion trigger's hover underline - #1145

Merged
vivek7405 merged 2 commits into
mainfrom
revert/accordion-hover-state-layer
Jul 27, 2026
Merged

revert: restore the accordion trigger's hover underline#1145
vivek7405 merged 2 commits into
mainfrom
revert/accordion-hover-state-layer

Conversation

@vivek7405

@vivek7405 vivek7405 commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

Reverts #1137 and the accordion half of #1126, at the owner's direction.

The trigger's hover was changed twice recently, both times by me, and neither landed. This puts it back to where it started, on shadcn's underline. The file is byte-identical to its state before either change (git diff 5e9be0b1 HEAD -- accordion.ts is empty).

hover
original, shadcn parity hover:underline restored here
#1126 hover:text-foreground/80 reverted
#1137 hover:bg-accent hover:text-accent-foreground reverted

The argument I made for replacing the underline (it reads as a link affordance, and a <summary> is a disclosure control rather than a navigation) was not wrong in itself. It just was not a problem anyone had, and it traded away shadcn parity, which is the stronger default for a kit whose whole premise is that shadcn knowledge transfers directly.

Nothing shipped either way: @webjsdev/ui is at 0.3.10 on npm and neither change was ever released.

Test plan

@webjsdev/ui 187 pass.

Worth recording: no test ever asserted the hover treatment, which is why it moved three times without friction. Not adding one here, because pinning a class string that is deliberately inherited from shadcn would just make the next sync noisier. The real guard is the parity rule in packages/ui/AGENTS.md invariant 5.

@vivek7405 vivek7405 self-assigned this Jul 27, 2026
Completes the revert. The trigger is now byte-identical to what it was
before either of the two hover changes, back on shadcn's underline.

The reasoning I gave for replacing it (an underline reads as a link, and
this is a disclosure control) was not wrong on its own terms, but it was
not a problem anyone had, and shadcn parity is the stronger default for a
kit whose whole promise is that shadcn knowledge transfers.
@vivek7405 vivek7405 changed the title revert: restore the accordion trigger hover from before #1137 revert: restore the accordion trigger's hover underline Jul 27, 2026
@vivek7405
vivek7405 merged commit 68bd760 into main Jul 27, 2026
10 checks passed
@vivek7405
vivek7405 deleted the revert/accordion-hover-state-layer branch July 27, 2026 20:32
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.

1 participant