From f9acb8d8e97931a99c97a640d257c797e2f28cfd Mon Sep 17 00:00:00 2001 From: Jan Faracik <43062514+janfaracik@users.noreply.github.com> Date: Tue, 28 Dec 2021 17:35:59 +0000 Subject: [PATCH] Remove unneeded check to improve performance --- war/src/main/less/modules/form.less | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/war/src/main/less/modules/form.less b/war/src/main/less/modules/form.less index 5562b8a87f25..a16f6d052893 100644 --- a/war/src/main/less/modules/form.less +++ b/war/src/main/less/modules/form.less @@ -421,25 +421,23 @@ clip: rect(0 0 0 0); clip-path: inset(50%); - &:not(:disabled) { - &:checked { - & + label { - &:active, - &:focus { - &::before { - box-shadow: 0 0 0 5px var(--focus-input-glow), inset 0 0 0 12px var(--focus-input-border); - } + &:checked { + & + label { + &:active, + &:focus { + &::before { + box-shadow: 0 0 0 5px var(--focus-input-glow), inset 0 0 0 12px var(--focus-input-border); } } + } - & + label { - &::before { - box-shadow: 0 0 0 10px transparent, inset 0 0 0 12px var(--focus-input-border); - } + & + label { + &::before { + box-shadow: 0 0 0 10px transparent, inset 0 0 0 12px var(--focus-input-border); + } - &::after { - transform: scale(1); - } + &::after { + transform: scale(1); } } } @@ -459,6 +457,7 @@ &::before { box-shadow: 0 0 0 10px transparent, inset 0 0 0 12px var(--focus-input-border) !important; } + &::after { transform: scale(1) !important; }