From 643bd5889616142878cf75a1efd5784a3ebc588b Mon Sep 17 00:00:00 2001 From: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Tue, 8 Mar 2022 08:10:18 +0000 Subject: [PATCH] [JENKINS-67965] Fix checkbox focus state (#6340) --- war/src/main/less/form/checkbox.less | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/war/src/main/less/form/checkbox.less b/war/src/main/less/form/checkbox.less index d7ae98b74634..c90cebec1be9 100644 --- a/war/src/main/less/form/checkbox.less +++ b/war/src/main/less/form/checkbox.less @@ -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,