2
0
mirror of https://github.com/frappe/books.git synced 2024-12-23 19:39:07 +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: { props: {
type: { type: {
type: String, type: String,
default: 'secondary' default: 'secondary',
}, },
icon: { icon: {
type: Boolean, type: Boolean,
default: false default: false,
}, },
disabled: { disabled: {
type: Boolean, type: Boolean,
default: false default: false,
} },
}, },
computed: { computed: {
style() { style() {
@ -39,9 +39,14 @@ export default {
}, },
_class() { _class() {
return { return {
'opacity-50 cursor-not-allowed pointer-events-none': this.disabled 'opacity-50 cursor-not-allowed pointer-events-none': this.disabled,
}; };
} },
} },
}; };
</script> </script>
<style scoped>
button:focus {
filter: brightness(0.95);
}
</style>