From 4483433dd7c0e8aad51baecf9bf790aa0a36983f Mon Sep 17 00:00:00 2001 From: Carlos Company Date: Tue, 31 Dec 2024 10:01:47 +0100 Subject: [PATCH] fix: removing pointer-events from BackToTop wrapper (#259) The back-to-top wrapper element is hidden but blocks hover events from other elements that may overlap in the same position. NOTE that this does not affect any component in the current design. I happened to notice this on a different fork where it was causing an issue and therefore I suggest the change but feel free to ignore this if you think is not relevant enough or could cause problems with the back to top component. --- src/components/control/BackToTop.astro | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/control/BackToTop.astro b/src/components/control/BackToTop.astro index 916d042b..73d6c442 100644 --- a/src/components/control/BackToTop.astro +++ b/src/components/control/BackToTop.astro @@ -18,6 +18,7 @@ import { Icon } from 'astro-icon/components' position: absolute right: 0 top: 0 + pointer-events: none .back-to-top-btn color: var(--primary) @@ -29,6 +30,7 @@ import { Icon } from 'astro-icon/components' opacity: 1 cursor: pointer transform: translateX(5rem) + pointer-events: auto i font-size: 1.75rem &.hide