Skip to content

Commit eee9c94

Browse files
committed
Add color transition to tooltip icons and "other versions"
1 parent 7f2df6f commit eee9c94

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

app/components/Package/Versions.vue

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -569,10 +569,10 @@ function majorGroupContainsCurrent(group: (typeof otherMajorGroups.value)[0]): b
569569
<TooltipApp interactive position="top">
570570
<span
571571
tabindex="0"
572-
class="block cursor-help shrink-0 -m-2 p-2 -me-1 focus-visible:outline-2 focus-visible:outline-accent/70 rounded"
572+
class="group/tooltip block cursor-help shrink-0 -m-2 p-2 -me-1 focus-visible:outline-2 focus-visible:outline-accent/70 rounded"
573573
>
574574
<span
575-
class="block i-lucide:info w-3.5 h-3.5 text-fg-subtle"
575+
class="block i-lucide:info w-3.5 h-3.5 text-fg-subtle transition-colors group-hover/tooltip:text-fg"
576576
role="img"
577577
:aria-label="$t('package.versions.filter_help')"
578578
/>
@@ -783,7 +783,7 @@ function majorGroupContainsCurrent(group: (typeof otherMajorGroups.value)[0]): b
783783
<div class="p-1">
784784
<button
785785
type="button"
786-
class="flex items-center gap-2 text-start rounded-sm w-full"
786+
class="group/version-row flex items-center gap-2 text-start rounded-sm w-full"
787787
:class="otherVersionsContainsCurrent() ? 'bg-bg-subtle' : ''"
788788
:aria-expanded="otherVersionsExpanded"
789789
:aria-label="
@@ -809,7 +809,9 @@ function majorGroupContainsCurrent(group: (typeof otherMajorGroups.value)[0]): b
809809
aria-hidden="true"
810810
/>
811811
</span>
812-
<span class="text-xs text-fg-muted py-1.5">
812+
<span
813+
class="text-xs text-fg-muted py-1.5 group-hover/version-row:text-fg transition-colors"
814+
>
813815
{{ $t('package.versions.other_versions') }}
814816
<span v-if="hiddenTagRows.length > 0" class="text-fg-subtle">
815817
({{

app/pages/package/[[org]]/[name].vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ const showSkeleton = shallowRef(false)
671671
<TooltipApp v-if="sizeTooltip" :text="sizeTooltip" interactive>
672672
<span
673673
tabindex="0"
674-
class="inline-flex items-center justify-center min-w-6 min-h-6 -m-1 p-1 text-fg-subtle cursor-help focus-visible:outline-2 focus-visible:outline-accent/70 rounded"
674+
class="inline-flex items-center justify-center min-w-6 min-h-6 -m-1 p-1 text-fg-subtle hover:text-fg transition-colors cursor-help focus-visible:outline-2 focus-visible:outline-accent/70 rounded"
675675
>
676676
<span class="i-lucide:info w-3 h-3" aria-hidden="true" />
677677
</span>

0 commit comments

Comments
 (0)