File tree 2 files changed +19
-2
lines changed
2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change 38
38
</ div >
39
39
40
40
< div >
41
- < input type ="checkbox " id ="my-checkbox-5 " indeterminate >
41
+ < input type ="checkbox " id ="my-checkbox-5 ">
42
42
< label for ="my-checkbox-5 "> Indeterminate set in JS</ label >
43
43
</ div >
44
44
45
45
< div >
46
- < input type ="checkbox " id ="my-checkbox-6 " indeterminate disabled >
46
+ < input type ="checkbox " id ="my-checkbox-6 " disabled >
47
47
< label for ="my-checkbox-6 "> Disabled, indeterminate set in JS</ label >
48
48
</ div >
49
49
</ main >
50
+
51
+ < script >
52
+ var indeterminateInput1 = document . getElementById ( 'my-checkbox-5' ) ;
53
+ var indeterminateInput2 = document . getElementById ( 'my-checkbox-6' ) ;
54
+
55
+ indeterminateInput1 . indeterminate = true ;
56
+ indeterminateInput2 . indeterminate = true ;
57
+ </ script >
58
+
50
59
</ body >
51
60
52
61
</ html >
Original file line number Diff line number Diff line change @@ -84,6 +84,14 @@ body {
84
84
}
85
85
}
86
86
87
+ & :indeterminate {
88
+ & + label ::before ,
89
+ & + label ::after {
90
+ content : " \e909 " ;
91
+ color : lighten ($input-color , 15% );
92
+ }
93
+ }
94
+
87
95
& :disabled {
88
96
& + label ,
89
97
& + label ::before ,
You can’t perform that action at this time.
0 commit comments