From 612934bf342a87ffdbbb47ab080cefe07fcff441 Mon Sep 17 00:00:00 2001 From: Truman Gao <106889354+tdgao@users.noreply.github.com> Date: Mon, 11 May 2026 15:39:09 -0600 Subject: [PATCH] fix: cannot hover over project card tooltip items (#6071) fix: cannot hover over project cards --- packages/assets/styles/classes.scss | 2 ++ .../ui/src/components/base/SmartClickable.vue | 4 ++- .../components/project/card/ProjectCard.vue | 12 +++++++-- .../src/stories/base/ProjectCard.stories.ts | 25 +++++++++++++++++++ .../stories/base/SmartClickable.stories.ts | 7 ++++++ 5 files changed, 47 insertions(+), 3 deletions(-) diff --git a/packages/assets/styles/classes.scss b/packages/assets/styles/classes.scss index 5d41c6fbc..1822c5fda 100644 --- a/packages/assets/styles/classes.scss +++ b/packages/assets/styles/classes.scss @@ -711,6 +711,8 @@ a:not(.no-click-animation), } .v-popper--theme-tooltip { + pointer-events: none; + .v-popper__inner { background: var(--color-tooltip-bg) !important; color: var(--color-tooltip-text) !important; diff --git a/packages/ui/src/components/base/SmartClickable.vue b/packages/ui/src/components/base/SmartClickable.vue index 216c2f25d..961de1732 100644 --- a/packages/ui/src/components/base/SmartClickable.vue +++ b/packages/ui/src/components/base/SmartClickable.vue @@ -48,7 +48,9 @@ defineOptions({ // When clickable is being hovered or focus-visible, give contents an effect :first-child:hover + .smart-clickable__contents, - :first-child:focus-visible + .smart-clickable__contents { + :first-child:focus-visible + .smart-clickable__contents, + .smart-clickable__contents:hover, + .smart-clickable__contents:focus-within { // Utility classes for contents :deep(.smart-clickable\:underline-on-hover) { text-decoration: underline; diff --git a/packages/ui/src/components/project/card/ProjectCard.vue b/packages/ui/src/components/project/card/ProjectCard.vue index 35663c407..a1f62ef15 100644 --- a/packages/ui/src/components/project/card/ProjectCard.vue +++ b/packages/ui/src/components/project/card/ProjectCard.vue @@ -62,7 +62,11 @@ :hide-label="true" /> - + ({ diff --git a/packages/ui/src/stories/base/SmartClickable.stories.ts b/packages/ui/src/stories/base/SmartClickable.stories.ts index b497ce925..ceff865d3 100644 --- a/packages/ui/src/stories/base/SmartClickable.stories.ts +++ b/packages/ui/src/stories/base/SmartClickable.stories.ts @@ -18,6 +18,13 @@ const meta = {

Clickable Card

The entire card is clickable

+ + Hover tooltip +
`,