From a613d0214790a2b84aa42882efd5f26c08dccccb Mon Sep 17 00:00:00 2001 From: Takumi Date: Sun, 23 Feb 2020 04:26:06 +0900 Subject: [PATCH] Add cursor pointer style to hidden radio buttons (#810) * Add cursor pointer style to hidden radio buttons * ensure hidden input buttons don't interact with mouse Co-authored-by: David Luzar --- src/components/ToolIcon.scss | 1 + src/styles.scss | 1 + 2 files changed, 2 insertions(+) diff --git a/src/components/ToolIcon.scss b/src/components/ToolIcon.scss index bd5fc234..c186e024 100644 --- a/src/components/ToolIcon.scss +++ b/src/components/ToolIcon.scss @@ -55,6 +55,7 @@ .ToolIcon_type_checkbox { position: absolute; opacity: 0; + pointer-events: none; &:hover + .ToolIcon__icon { background-color: #e9ecef; diff --git a/src/styles.scss b/src/styles.scss index 96aa9ff3..9d384de0 100644 --- a/src/styles.scss +++ b/src/styles.scss @@ -81,6 +81,7 @@ canvas { input[type="radio"] { opacity: 0; position: absolute; + pointer-events: none; } }