Skip to content

Commit

Permalink
Merge pull request #4182 from owid/search-enhancements
Browse files Browse the repository at this point in the history
✨ autofocus SearchBox on search page
  • Loading branch information
ikesau authored Nov 18, 2024
2 parents 1fc853c + a6ca2b5 commit fbda1b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions site/search/Search.scss
Original file line number Diff line number Diff line change
Expand Up @@ -417,11 +417,10 @@ $reset-button-margin: 16px;

section.search-page__no-results {
display: none;
height: 60vh;
height: 70vh;
text-align: center;
flex-direction: column;
justify-content: center;
background-color: $gray-10;

h2 {
margin-bottom: 0;
Expand Down
1 change: 1 addition & 0 deletions site/search/SearchPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -766,6 +766,7 @@ export class InstantSearchContainer extends React.Component {
>
<div className="search-panel">
<SearchBox
autoFocus
placeholder={DEFAULT_SEARCH_PLACEHOLDER}
className="searchbox"
classNames={{
Expand Down

0 comments on commit fbda1b7

Please sign in to comment.