Skip to content

Commit d0bfdad

Browse files
committed
set cursor: not-allowed for input:disabled
1 parent 2ecd445 commit d0bfdad

File tree

4 files changed

+30
-0
lines changed

4 files changed

+30
-0
lines changed

awesome-bootstrap-checkbox.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@
6363
margin-left: -16.5px;
6464
margin-top: 7px;
6565
}
66+
.checkbox input[type="checkbox"]:disabled,
67+
.checkbox input[type="radio"]:disabled {
68+
cursor: not-allowed;
69+
}
6670
.checkbox input[type="checkbox"]:disabled + label,
6771
.checkbox input[type="radio"]:disabled + label {
6872
opacity: 0.65;
@@ -244,6 +248,9 @@
244248
-o-transform: scale(1, 1);
245249
transform: scale(1, 1);
246250
}
251+
.radio input[type="radio"]:disabled {
252+
cursor: not-allowed;
253+
}
247254
.radio input[type="radio"]:disabled + label {
248255
opacity: 0.65;
249256
}

awesome-bootstrap-checkbox.less

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@
9797
margin-top: 7px;
9898
}
9999

100+
&:disabled {
101+
cursor: not-allowed;
102+
}
103+
100104
&:disabled + label{
101105
opacity: 0.65;
102106

@@ -205,6 +209,10 @@
205209
.scale(1, 1);
206210
}
207211

212+
&:disabled{
213+
cursor: not-allowed;
214+
}
215+
208216
&:disabled + label{
209217
opacity: 0.65;
210218

awesome-bootstrap-checkbox.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ $check-icon: $fa-var-check !default;
9999
margin-top: 7px;
100100
}
101101

102+
&:disabled{
103+
cursor: not-allowed;
104+
}
105+
102106
&:disabled + label{
103107
opacity: 0.65;
104108

@@ -208,6 +212,10 @@ $check-icon: $fa-var-check !default;
208212
@include scale(1, 1);
209213
}
210214

215+
&:disabled{
216+
cursor: not-allowed;
217+
}
218+
211219
&:disabled + label{
212220
opacity: 0.65;
213221

demo/build.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@
5757
margin-left: -16.5px;
5858
margin-top: 7px;
5959
}
60+
.checkbox input[type="checkbox"]:disabled,
61+
.checkbox input[type="radio"]:disabled {
62+
cursor: not-allowed;
63+
}
6064
.checkbox input[type="checkbox"]:disabled + label,
6165
.checkbox input[type="radio"]:disabled + label {
6266
opacity: 0.65; }
@@ -218,6 +222,9 @@
218222
-ms-transform: scale(1, 1);
219223
-o-transform: scale(1, 1);
220224
transform: scale(1, 1); }
225+
.radio input[type="radio"]:disabled {
226+
cursor: not-allowed;
227+
}
221228
.radio input[type="radio"]:disabled + label {
222229
opacity: 0.65; }
223230
.radio input[type="radio"]:disabled + label::before {

0 commit comments

Comments
 (0)