浏览代码

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 <luzar.david@gmail.com>
Takumi 5 年之前
父节点
当前提交
a613d02147
共有 2 个文件被更改,包括 2 次插入0 次删除
  1. 1 0
      src/components/ToolIcon.scss
  2. 1 0
      src/styles.scss

+ 1 - 0
src/components/ToolIcon.scss

@@ -55,6 +55,7 @@
 .ToolIcon_type_checkbox {
   position: absolute;
   opacity: 0;
+  pointer-events: none;
 
   &:hover + .ToolIcon__icon {
     background-color: #e9ecef;

+ 1 - 0
src/styles.scss

@@ -81,6 +81,7 @@ canvas {
     input[type="radio"] {
       opacity: 0;
       position: absolute;
+      pointer-events: none;
     }
   }