From 75f03cf0eb1bf3f1c602af1b1153bdaabbf5677b Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Tue, 20 Dec 2022 09:22:26 +0800 Subject: [PATCH] Make everything inside buttons un-pointer-able Gets annoying when getting e.target from interacting with buttons --- src/index.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.css b/src/index.css index d7fe7760..ba505d82 100644 --- a/src/index.css +++ b/src/index.css @@ -118,8 +118,9 @@ button, vertical-align: middle; text-decoration: none; } -button > * { +:is(button, .button) > * { vertical-align: middle; + pointer-events: none; } :is(button, .button):not(:disabled, .disabled):hover { cursor: pointer;