Skip to content

Commit ed46b9a

Browse files
committed
fix: tag class specificity
1 parent cbde551 commit ed46b9a

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

app/components/Tag/Static.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,11 @@ const props = withDefaults(
1313
<template>
1414
<component
1515
:is="as"
16-
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 outline-none"
17-
:class="{ 'opacity-80 border-dashed': variant === 'ghost' }"
16+
class="bg-bg-muted text-fg-muted inline-flex gap-x-1 items-center justify-center font-mono border rounded-md text-xs px-2 py-0.5 outline-none"
17+
:class="{
18+
'border-transparent': variant === 'default',
19+
'opacity-80 border-muted border-dashed': variant === 'ghost',
20+
}"
1821
>
1922
<span v-if="classicon" class="size-[1em]" :class="classicon" aria-hidden="true" />
2023
<slot />

0 commit comments

Comments
 (0)