Skip to content

Commit 042f468

Browse files
committed
refactor: rename tag variant
1 parent 952a695 commit 042f468

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

app/components/Package/MetricsBadges.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ const typesHref = computed(() => {
6363
</LinkBase>
6464
<TagStatic
6565
v-else
66-
:variant="hasTypes && !isLoading ? 'default' : 'disabled'"
66+
:variant="hasTypes && !isLoading ? 'default' : 'ghost'"
6767
:tabindex="0"
6868
:classicon="
6969
isLoading
@@ -85,7 +85,7 @@ const typesHref = computed(() => {
8585
>
8686
<TagStatic
8787
tabindex="0"
88-
:variant="hasEsm && !isLoading ? 'default' : 'disabled'"
88+
:variant="hasEsm && !isLoading ? 'default' : 'ghost'"
8989
:classicon="
9090
isLoading
9191
? 'i-carbon-circle-dash motion-safe:animate-spin'
@@ -104,7 +104,7 @@ const typesHref = computed(() => {
104104
<TooltipApp :text="isLoading ? '' : $t('package.metrics.cjs')">
105105
<TagStatic
106106
tabindex="0"
107-
:variant="isLoading ? 'disabled' : 'default'"
107+
:variant="isLoading ? 'ghost' : 'default'"
108108
:classicon="
109109
isLoading ? 'i-carbon-circle-dash motion-safe:animate-spin' : 'i-carbon-checkmark'
110110
"

app/components/Tag/Static.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
const props = withDefaults(
33
defineProps<{
44
as?: string | Component
5-
variant?: 'disabled' | 'default'
5+
variant?: 'ghost' | 'default'
66
77
classicon?: string
88
}>(),
@@ -14,7 +14,7 @@ const props = withDefaults(
1414
<component
1515
:is="as"
1616
class="bg-bg-muted text-fg-muted inline-flex gap-x-1 items-center justify-center font-mono border border-transparent rounded-md text-xs px-2 py-0.5"
17-
:class="{ 'opacity-40': variant === 'disabled' }"
17+
:class="{ 'opacity-40': variant === 'ghost' }"
1818
>
1919
<span v-if="classicon" :class="['size-3', classicon]" aria-hidden="true" />
2020
<slot />

0 commit comments

Comments
 (0)