Skip to content

Commit 1c0a159

Browse files
committed
style: improve disabled design
1 parent a2c3ff4 commit 1c0a159

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

app/components/Button/Base.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ defineExpose({
2121
<template>
2222
<button
2323
ref="el"
24-
class="cursor-pointer inline-flex gap-x-1 items-center justify-center font-mono border border-border rounded-md transition-all duration-200 disabled:(opacity-40 cursor-not-allowed) aria-pressed:(bg-fg text-bg border-fg hover:enabled:(text-bg/50))"
24+
class="cursor-pointer inline-flex gap-x-1 items-center justify-center font-mono border border-border rounded-md transition-all duration-200 disabled:(opacity-40 cursor-not-allowed border-transparent) aria-pressed:(bg-fg text-bg border-fg hover:enabled:(text-bg/50))"
2525
:class="{
2626
'text-sm px-4 py-2': variant !== 'tag',
2727
'text-xs px-2 py-0.5': variant === 'tag',

app/components/Button/Link.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const props = withDefaults(
2525
<template>
2626
<span
2727
v-if="disabled"
28-
class="opacity-50 inline-flex gap-x-1 items-center justify-center font-mono border border-border rounded-md"
28+
class="opacity-50 inline-flex gap-x-1 items-center justify-center font-mono border border-transparent rounded-md"
2929
:class="{
3030
'text-sm px-4 py-2': variant !== 'tag',
3131
'text-xs px-2 py-0.5': variant === 'tag',

0 commit comments

Comments
 (0)