Skip to content

Commit 951e470

Browse files
authored
Merge pull request #251 from devforth/AdminForth/687
fix: Add active state to AFCL button component
2 parents 3e7b08a + ab586b7 commit 951e470

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

adminforth/spa/src/afcl/Button.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@
55
class="afcl-button flex items-center justify-center gap-1 text-lightPrimaryContrast bg-lightPrimary dark:bg-darkPrimary hover:brightness-110
66
focus:ring-4 focus:outline-none focus:ring-lightPrimary focus:ring-opacity-50 font-medium rounded-lg text-sm px-5 py-2.5 text-center dark:focus:ring-darkPrimary dark:focus:ring-opacity-50"
77
:class="{
8-
'cursor-default': props.disabled,
9-
'opacity-50': props.disabled,
10-
'pointer-events-none': props.disabled,
8+
'cursor-default opacity-50 pointer-events-none': props.disabled,
9+
'active brightness-200 hover:brightness-150' : props.active
1110
}"
1211
>
1312
<svg v-if="props.loader"
@@ -22,6 +21,7 @@
2221
const props = defineProps({
2322
loader: Boolean,
2423
disabled: Boolean,
24+
active: Boolean,
2525
});
2626
2727
</script>

0 commit comments

Comments
 (0)