Skip to content

Commit

Permalink
refactor: reposition search inputs cancel button #627
Browse files Browse the repository at this point in the history
  • Loading branch information
mfranzke committed Nov 3, 2023
1 parent 963428a commit d4fed05
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/_patterns/01-elements/input/input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,11 @@
background-size: to-rem($pxValue: 19);
padding-left: to-rem($pxValue: 32);

// Reposition the Chromium browsers cancel button to "counteract" on floating labels padding-top on inputs
&::-webkit-search-cancel-button {
transform: translateY(-#{to-rem(8)});
}

:not(.cmp-sitesearch) > & {
@extend %form-element-semitransparent;

Expand Down

0 comments on commit d4fed05

Please sign in to comment.