Skip to content

Commit dd19dda

Browse files
committed
border for secondary buttons
1 parent 1a85202 commit dd19dda

3 files changed

Lines changed: 6 additions & 8 deletions

File tree

app/components/AppHeader.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ onKeyStroke(
151151
</div>
152152

153153
<!-- End: Desktop nav items + Mobile menu button -->
154-
<div class="hidden sm:flex flex-shrink-0">
154+
<div class="hidden sm:flex flex-shrink-0 space-x-0.5 md:space-x-2">
155155
<!-- Desktop: Compare link -->
156156
<LinkBase
157157
class="border-none"

app/components/Button/Base.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,11 @@ defineExpose({
4848
:aria-keyshortcuts="keyshortcut"
4949
>
5050
<span
51-
class="group cursor-pointer inline-flex gap-x-1.5 relative items-center justify-center rounded-md active:scale-[0.98] font-mono border border-solid transition-[background-color,color,border,outline] duration-200 transition-[border-radius_100ms] after:(content-[''] absolute inset--0.5 rounded-md) outline-transparent group-focus-visible:(outline-2 outline-accent outline-offset-2)"
51+
class="group cursor-pointer inline-flex gap-x-1.5 relative items-center justify-center rounded-md active:scale-[0.98] font-mono border border-solid border-border transition-[background-color,color,border,outline] duration-200 transition-[border-radius_100ms] after:(content-[''] absolute inset--0.5 rounded-md) outline-transparent group-focus-visible:(outline-2 outline-accent outline-offset-2)"
5252
:class="{
5353
'text-sm px-4 py-2': size === 'medium',
5454
'text-xs px-2 py-0.5': size === 'small',
55-
'text-fg bg-transparent border-transparent hover:(bg-fg/10 border-fg/10)':
56-
variant === 'secondary',
55+
'text-fg bg-bg hover:(bg-fg/10 border-fg/10)': variant === 'secondary',
5756
'text-bg bg-fg border-fg hover:(bg-fg/80 rounded-xl) active:rounded-xl':
5857
variant === 'primary',
5958
'opacity-40 cursor-not-allowed border-transparent': disabled,

app/components/Link/Base.vue

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,18 +75,17 @@ const isButtonMedium = computed(() => props.size === 'medium' && props.variant !
7575
</span>
7676
<NuxtLink
7777
v-else
78-
class="group inline-flex gap-x-1 items-center justify-center rounded-sm outline-transparent active:scale-[0.98] focus-visible:(outline-2 outline-accent)"
78+
class="group inline-flex gap-x-1 items-center justify-center rounded-sm outline-transparent active:scale-[0.98] focus-visible:(outline-2 outline-offset-2 outline-accent)"
7979
:class="[
8080
{
8181
'underline-offset-[0.2rem] underline decoration-1 decoration-fg/30':
8282
!isLinkAnchor && isLink,
8383
'font-mono text-fg hover:(decoration-accent) focus-visible:(decoration-accent text-accent) transition-colors duration-200':
8484
isLink,
85-
'font-mono border border-solid border-transparent rounded-md transition-all duration-200':
86-
isButton,
85+
'border border-solid border-border rounded-md transition-all duration-200': isButton,
8786
'text-sm px-4 py-2': isButtonMedium,
8887
'text-xs px-2 py-0.5': isButtonSmall,
89-
'text-fg bg-transparent hover:(bg-fg/10 border-fg/10)': variant === 'button-secondary',
88+
'text-fg bg-bg hover:(bg-fg/10 border-fg/10)': variant === 'button-secondary',
9089
'text-bg bg-fg border-fg hover:(bg-fg/80)': variant === 'button-primary',
9190
},
9291
props.class,

0 commit comments

Comments
 (0)