Skip to content

Commit 57f81b0

Browse files
committed
fix: broken logic
1 parent 45a1a2f commit 57f81b0

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

app/components/Link/Base.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const isLink = computed(() => props.variant === 'link' || props.variant === 'lin
5656
const isButton = computed(() => !isLink.value)
5757
const isButtonSmall = computed(() => props.size === 'small' && !isLink.value)
5858
const isButtonMedium = computed(() => props.size === 'medium' && !isLink.value)
59-
const isBlock = computed(() => isButton || props.variant === 'link-block')
59+
const isBlock = computed(() => isButton.value || props.variant === 'link-block')
6060
</script>
6161

6262
<template>
@@ -83,7 +83,8 @@ const isBlock = computed(() => isButton || props.variant === 'link-block')
8383
'underline-offset-[0.2rem] underline decoration-1 decoration-fg/30': !isLinkAnchor && isLink,
8484
'justify-start font-mono text-fg hover:(decoration-accent text-accent) focus-visible:(decoration-accent text-accent) transition-colors duration-200':
8585
isLink,
86-
'justify-center font-mono border border-border rounded-md transition-all duration-200': isButton,
86+
'justify-center font-mono border border-border rounded-md transition-all duration-200':
87+
isButton,
8788
'text-sm px-4 py-2': isButtonMedium,
8889
'text-xs px-2 py-0.5': isButtonSmall,
8990
'bg-transparent text-fg hover:(bg-fg/10) focus-visible:(bg-fg/10)':

0 commit comments

Comments
 (0)