Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instant Search: add more styling specificity to search input #14661

Merged
merged 9 commits into from
Feb 20, 2020
2 changes: 2 additions & 0 deletions modules/search/instant-search/components/overlay.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@
z-index: 20;
width: 44px;
height: 44px;
margin: 0;
padding: 0;
line-height: 1;
border-radius: 0;

@include break-medium() {
width: 64px;
Expand Down
7 changes: 7 additions & 0 deletions modules/search/instant-search/components/search-box.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,11 @@ input.jetpack-instant-search__box-input.search-field {
.jetpack-instant-search__box input,
.jetpack-instant-search__box input[type='search'].jetpack-instant-search__box-input {
width: 100%;

&::-webkit-search-decoration,
&::-webkit-search-cancel-button,
&::-webkit-search-results-button,
&::-webkit-search-results-decoration {
-webkit-appearance: searchfield;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
-webkit-appearance: searchfield;
-webkit-appearance: searchfield;
display: initial;

This should fix the issue with 2020. These elements were being set to display: none.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Brilliant @jsnmoon ! Thanks for figuring that out. Added in 9d6d6b2

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
}

.jetpack-instant-search__search-results-real-query {
font-size: 1.5em;
font-size: 1em;
font-weight: bold;
}

Expand Down