Skip to content

Commit 565e122

Browse files
committed
set cursor: not-allowed for input:disabled
1 parent db6324d commit 565e122

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

awesome-bootstrap-checkbox.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@
5656
border-radius: 2px;
5757
margin-left: -16.5px;
5858
margin-top: 7px; }
59+
.abc-checkbox input[type="checkbox"]:disabled,
60+
.abc-checkbox input[type="radio"]:disabled {
61+
cursor: not-allowed; }
5962
.abc-checkbox input[type="checkbox"]:disabled + label,
6063
.abc-checkbox input[type="radio"]:disabled + label {
6164
opacity: 0.65; }

awesome-bootstrap-checkbox.scss

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

104+
&:disabled{
105+
cursor: not-allowed;
106+
}
107+
104108
&:disabled + label{
105109
opacity: 0.65;
106110

@@ -213,6 +217,10 @@ $check-icon: $fa-var-check !default;
213217
transform: scale(1, 1);
214218
}
215219

220+
&:disabled{
221+
cursor: not-allowed;
222+
}
223+
216224
&:disabled + label{
217225
opacity: 0.65;
218226

demo/build.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@
5656
border-radius: 2px;
5757
margin-left: -16.5px;
5858
margin-top: 7px; }
59+
.abc-checkbox input[type="checkbox"]:disabled,
60+
.abc-checkbox input[type="radio"]:disabled {
61+
cursor: not-allowed; }
5962
.abc-checkbox input[type="checkbox"]:disabled + label,
6063
.abc-checkbox input[type="radio"]:disabled + label {
6164
opacity: 0.65; }

0 commit comments

Comments
 (0)