Selaa lähdekoodia

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 vuotta sitten
vanhempi
commit
a613d02147
2 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  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;
     }
   }