Skip to content

Commit ecd17cd

Browse files
committed
Add disabled states for checkboxes, reduce margin if no label
1 parent 4dba9df commit ecd17cd

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

war/src/main/less/modules/form.less

+17
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,17 @@
434434
&:checked + label:after {
435435
transform: scale(1)!important;
436436
}
437+
438+
&:disabled {
439+
& + label {
440+
cursor: default;
441+
pointer-events: none;
442+
443+
&::before {
444+
opacity: 0.3 !important;
445+
}
446+
}
447+
}
437448
}
438449

439450
.jenkins-checkbox label {
@@ -491,6 +502,12 @@
491502
box-shadow: 0 0 0 5px var(--focus-input-glow);
492503
}
493504
}
505+
506+
&:empty {
507+
&::before {
508+
margin-right: 0;
509+
}
510+
}
494511
}
495512

496513
.jenkins-checkbox__description {

0 commit comments

Comments
 (0)