From 3aa930d29094fb48fcc3194eccdbc6012adf5fda Mon Sep 17 00:00:00 2001 From: Carlos Company Date: Thu, 12 Dec 2024 22:24:17 +0100 Subject: [PATCH] Removing pointer-events from BackToTop wrapper 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 916d042b4..73d6c4420 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