You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fix(website): make Card hover lift actually render border/shadow
The global [data-hoverable]:hover rule set box-shadow/border-color without
!important, so Card's inline border/box-shadow always won — only the
translate applied. Add !important so the lift renders; add an accent
variant (accent ring, keeps the accent border) via a new Card `accent`
prop. Switch the docs landing + prev/next cards from the broken ad-hoc
`data-ui="docs-card"` scoped styles to the shared hoverable/accent
mechanism and delete the duplicated <style> blocks.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* refactor(website): drop !important — fix Card hover at the cascade root
The previous fix beat Card's inline border/box-shadow with !important on the
hover rules. That treats the symptom: the resting border/box-shadow are still
inline, so every future state (focus, active) hits the same wall, and per-card
overrides have to fight !important.
Move Card's resting background/border/box-shadow/transition out of inline and
into the `[data-ui="card"]` stylesheet; drive surface via `data-surface` and the
accent fill via `[data-ui="card"][data-accent]`. With nothing inline, the hover
rules win on specificity alone — no !important anywhere. Accent cards keep the
accent ring + shadow; plain cards get the neutral border-strong + shadow lift.
Verified: e2e/docs.spec.ts 8/8; real Playwright hover shows the accent ring
(0 0 0 3px accent-glow + shadow-md) and the neutral lift render correctly.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments