Skip to content

Commit

Permalink
Remove unneeded check to improve performance
Browse files Browse the repository at this point in the history
  • Loading branch information
janfaracik committed Dec 28, 2021
1 parent 3f8ac70 commit f9acb8d
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions war/src/main/less/modules/form.less
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
Expand All @@ -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;
}
Expand Down

0 comments on commit f9acb8d

Please sign in to comment.