Skip to content

Commit

Permalink
Add disabled states for checkboxes, reduce margin if no label
Browse files Browse the repository at this point in the history
  • Loading branch information
janfaracik committed Dec 28, 2021
1 parent 4dba9df commit ecd17cd
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions war/src/main/less/modules/form.less
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,17 @@
&:checked + label:after {
transform: scale(1)!important;
}

&:disabled {
& + label {
cursor: default;
pointer-events: none;

&::before {
opacity: 0.3 !important;
}
}
}
}

.jenkins-checkbox label {
Expand Down Expand Up @@ -491,6 +502,12 @@
box-shadow: 0 0 0 5px var(--focus-input-glow);
}
}

&:empty {
&::before {
margin-right: 0;
}
}
}

.jenkins-checkbox__description {
Expand Down

0 comments on commit ecd17cd

Please sign in to comment.