2
0
mirror of https://github.com/frappe/books.git synced 2024-12-23 11:29:03 +00:00

fix(ux): darken on active (preserve outline none)

This commit is contained in:
18alantom 2022-02-07 16:56:27 +05:30
parent dd5d87442e
commit 0acdaa9b78

View File

@ -15,16 +15,16 @@ export default {
props: {
type: {
type: String,
default: 'secondary'
default: 'secondary',
},
icon: {
type: Boolean,
default: false
default: false,
},
disabled: {
type: Boolean,
default: false
}
default: false,
},
},
computed: {
style() {
@ -39,9 +39,14 @@ export default {
},
_class() {
return {
'opacity-50 cursor-not-allowed pointer-events-none': this.disabled
'opacity-50 cursor-not-allowed pointer-events-none': this.disabled,
};
}
}
},
},
};
</script>
<style scoped>
button:focus {
filter: brightness(0.95);
}
</style>