mirror of
https://github.com/frappe/books.git
synced 2024-12-24 11:55:46 +00:00
fix(ux): darken on active (preserve outline none)
This commit is contained in:
parent
dd5d87442e
commit
0acdaa9b78
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user