From 666d300b9e9c70d05ba0249f8e3ad1cf20c6d398 Mon Sep 17 00:00:00 2001 From: Michiel van der Geest Date: Thu, 26 Sep 2024 09:51:29 +0200 Subject: [PATCH] Updated z-index on button. --- src/components/Button.js | 4 ---- src/pages/FocusHandling.js | 24 +++++++++++++++--------- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/src/components/Button.js b/src/components/Button.js index 4d5c630..9347445 100644 --- a/src/components/Button.js +++ b/src/components/Button.js @@ -26,7 +26,6 @@ export default Blits.Component('Button', { :effects="[$shader('radius', {radius: 20})]" :alpha.transition="$alpha" :scale.transition="$scale" - :z="$zIndex" :rotation="$rotate" > @@ -36,7 +35,6 @@ export default Blits.Component('Button', { return { alpha: 0.4, scale: 1, - zIndex: 1, rotate: 0, } }, @@ -45,13 +43,11 @@ export default Blits.Component('Button', { this.$log.info(`Button with color ${this.color} received focus`) this.alpha = 1 this.scale = this.scale === 1 ? 1.2 : 1 - this.zIndex = 100 }, unfocus() { this.$log.info(`Button with color ${this.color} lost focus`) this.alpha = 0.4 this.scale = 1 - this.zIndex = 1 this.rotate = 0 }, }, diff --git a/src/pages/FocusHandling.js b/src/pages/FocusHandling.js index 67449e1..f78bcad 100644 --- a/src/pages/FocusHandling.js +++ b/src/pages/FocusHandling.js @@ -27,15 +27,15 @@ export default Blits.Component('FocusHandling', { template: ` -