Skip to content

Commit

Permalink
[JENKINS-67965] Fix checkbox focus state (#6340)
Browse files Browse the repository at this point in the history
  • Loading branch information
janfaracik authored Mar 8, 2022
1 parent c060286 commit 643bd58
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions war/src/main/less/form/checkbox.less
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,28 @@
clip: rect(0 0 0 0);
clip-path: inset(50%);

&:not(:disabled) {
&:active,
&:focus {
& + label {
&::before {
box-shadow: 0 0 0 5px var(--focus-input-glow), inset 0 0 0 2px var(--focus-input-border);
}
}
}

&:checked {
&:active,
&:focus {
& + label {
&::before {
box-shadow: 0 0 0 5px var(--focus-input-glow), inset 0 0 0 12px var(--focus-input-border);
}
}
}
}
}

&:checked {
& + label {
&:active,
Expand Down

0 comments on commit 643bd58

Please sign in to comment.