Skip to content

Commit 264c045

Browse files
author
yaroslav8765
committed
fix: Add active button state
1 parent 3e7b08a commit 264c045

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

adminforth/spa/src/afcl/Button.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
'cursor-default': props.disabled,
99
'opacity-50': props.disabled,
1010
'pointer-events-none': props.disabled,
11+
'active': props.active,
12+
'brightness-200': props.active,
13+
'hover:brightness-150': props.active,
1114
}"
1215
>
1316
<svg v-if="props.loader"
@@ -22,6 +25,7 @@
2225
const props = defineProps({
2326
loader: Boolean,
2427
disabled: Boolean,
28+
active: Boolean,
2529
});
2630
2731
</script>

0 commit comments

Comments
 (0)