Skip to content

Commit 1c73a34

Browse files
committed
Fix mouse events firing on inputs. Close flatlogic#15
1 parent 7f19763 commit 1c73a34

5 files changed

+14
-4
lines changed

awesome-bootstrap-checkbox.css

+4-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
font-size: 11px;
3232
color: #555555; }
3333
.checkbox input[type="checkbox"] {
34-
opacity: 0; }
34+
opacity: 0;
35+
z-index: 1; }
3536
.checkbox input[type="checkbox"]:focus + label::before {
3637
outline: thin dotted;
3738
outline: 5px auto -webkit-focus-ring-color;
@@ -119,7 +120,8 @@
119120
-o-transition: -o-transform 0.1s cubic-bezier(0.8, -0.33, 0.2, 1.33);
120121
transition: transform 0.1s cubic-bezier(0.8, -0.33, 0.2, 1.33); }
121122
.radio input[type="radio"] {
122-
opacity: 0; }
123+
opacity: 0;
124+
z-index: 1; }
123125
.radio input[type="radio"]:focus + label::before {
124126
outline: thin dotted;
125127
outline: 5px auto -webkit-focus-ring-color;

awesome-bootstrap-checkbox.less

+2
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454

5555
input[type="checkbox"]{
5656
opacity: 0;
57+
z-index: 1;
5758

5859
&:focus + label::before{
5960
.tab-focus();
@@ -154,6 +155,7 @@
154155

155156
input[type="radio"]{
156157
opacity: 0;
158+
z-index: 1;
157159

158160
&:focus + label::before{
159161
.tab-focus();

awesome-bootstrap-checkbox.scss

+2
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454

5555
input[type="checkbox"]{
5656
opacity: 0;
57+
z-index: 1;
5758

5859
&:focus + label::before{
5960
@include tab-focus();
@@ -154,6 +155,7 @@
154155

155156
input[type="radio"]{
156157
opacity: 0;
158+
z-index: 1;
157159

158160
&:focus + label::before{
159161
@include tab-focus();

demo/build.css

+4-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
font-size: 11px;
3232
color: #555555; }
3333
.checkbox input[type="checkbox"] {
34-
opacity: 0; }
34+
opacity: 0;
35+
z-index: 1; }
3536
.checkbox input[type="checkbox"]:focus + label::before {
3637
outline: thin dotted;
3738
outline: 5px auto -webkit-focus-ring-color;
@@ -119,7 +120,8 @@
119120
-o-transition: -o-transform 0.1s cubic-bezier(0.8, -0.33, 0.2, 1.33);
120121
transition: transform 0.1s cubic-bezier(0.8, -0.33, 0.2, 1.33); }
121122
.radio input[type="radio"] {
122-
opacity: 0; }
123+
opacity: 0;
124+
z-index: 1; }
123125
.radio input[type="radio"]:focus + label::before {
124126
outline: thin dotted;
125127
outline: 5px auto -webkit-focus-ring-color;

demo/build.less.css

+2
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
}
3737
.checkbox input[type="checkbox"] {
3838
opacity: 0;
39+
z-index: 1;
3940
}
4041
.checkbox input[type="checkbox"]:focus + label::before {
4142
outline: thin dotted;
@@ -139,6 +140,7 @@
139140
}
140141
.radio input[type="radio"] {
141142
opacity: 0;
143+
z-index: 1;
142144
}
143145
.radio input[type="radio"]:focus + label::before {
144146
outline: thin dotted;

0 commit comments

Comments
 (0)