From bebb9705eb62d5a93a201d68863149c7a238e395 Mon Sep 17 00:00:00 2001 From: imagoiq <12294151+imagoiq@users.noreply.github.com> Date: Wed, 13 Dec 2023 15:53:04 +0100 Subject: [PATCH] Fix code smell --- .../styles/src/components/floating-label.scss | 22 +++++++++---------- 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/packages/styles/src/components/floating-label.scss b/packages/styles/src/components/floating-label.scss index 37488024b9..9d9b539fd8 100644 --- a/packages/styles/src/components/floating-label.scss +++ b/packages/styles/src/components/floating-label.scss @@ -48,18 +48,6 @@ } } - &.form-control-sm { - &[type='date']::-webkit-calendar-picker-indicator { - margin-top: -(spacing.$size-small-regular); - } - } - - &.form-control-lg { - &[type='date']::-webkit-calendar-picker-indicator { - margin-top: -(spacing.$size-small-large); - } - } - &:focus { @include forms-mx.placeholder { color: rgba(var(--post-contrast-color-rgb), 0.6); @@ -96,6 +84,10 @@ min-height: forms.$form-floating-label-height-sm; padding-inline: forms.$form-floating-padding-x-sm; + &[type='date']::-webkit-calendar-picker-indicator { + margin-top: -(spacing.$size-small-regular); + } + ~ label { font-size: forms.$form-floating-label-font-size-placeholder-sm; padding-top: forms.$form-floating-label-padding-t-sm; @@ -112,6 +104,12 @@ } } } + + &.form-control-lg { + &[type='date']::-webkit-calendar-picker-indicator { + margin-top: -(spacing.$size-small-large); + } + } } > .form-select {