Skip to content

Commit

Permalink
Fix code smell
Browse files Browse the repository at this point in the history
  • Loading branch information
imagoiq committed Dec 13, 2023
1 parent c33994e commit bebb970
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions packages/styles/src/components/floating-label.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
Expand All @@ -112,6 +104,12 @@
}
}
}

&.form-control-lg {
&[type='date']::-webkit-calendar-picker-indicator {
margin-top: -(spacing.$size-small-large);
}
}
}

> .form-select {
Expand Down

0 comments on commit bebb970

Please sign in to comment.