We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3e7b08a + ab586b7 commit 951e470Copy full SHA for 951e470
1 file changed
adminforth/spa/src/afcl/Button.vue
@@ -5,9 +5,8 @@
5
class="afcl-button flex items-center justify-center gap-1 text-lightPrimaryContrast bg-lightPrimary dark:bg-darkPrimary hover:brightness-110
6
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"
7
:class="{
8
- 'cursor-default': props.disabled,
9
- 'opacity-50': props.disabled,
10
- 'pointer-events-none': props.disabled,
+ 'cursor-default opacity-50 pointer-events-none': props.disabled,
+ 'active brightness-200 hover:brightness-150' : props.active
11
}"
12
>
13
<svg v-if="props.loader"
@@ -22,6 +21,7 @@
22
21
const props = defineProps({
23
loader: Boolean,
24
disabled: Boolean,
+ active: Boolean,
25
});
26
27
</script>
0 commit comments