Skip to content

Commit d4fed05

Browse files
committed
refactor: reposition search inputs cancel button #627
1 parent 963428a commit d4fed05

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

source/_patterns/01-elements/input/input.scss

+5
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,11 @@
146146
background-size: to-rem($pxValue: 19);
147147
padding-left: to-rem($pxValue: 32);
148148

149+
// Reposition the Chromium browsers cancel button to "counteract" on floating labels padding-top on inputs
150+
&::-webkit-search-cancel-button {
151+
transform: translateY(-#{to-rem(8)});
152+
}
153+
149154
:not(.cmp-sitesearch) > & {
150155
@extend %form-element-semitransparent;
151156

0 commit comments

Comments
 (0)