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

refactor(v2): increase search input on medium screens #2799

Merged
merged 3 commits into from
May 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const Search = ({handleSearchBarToggle, isSearchBarExpanded}) => {
openOnFocus: true,
autoselect: false,
hint: false,
tabAutocomplete: false,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This produces extra CSS classes, especially since this option is not fit for us.

},
// Override algolia's default selection event, allowing us to do client-side
// navigation and avoiding a full page refresh.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@
display: none;
}

@media (min-width: 769px) and (max-width: 996px) {
:global(.navbar__search),
:global(.navbar__search-input) {
width: 100%;
}
}

@media (max-width: 768px) {
.searchIconButton {
display: block;
Expand Down Expand Up @@ -53,10 +60,10 @@
.searchInputExpanded {
width: 100%;
}
}

:global(.algolia-autocomplete) {
width: 100%;
display: flex !important;
justify-content: flex-end;
}
:global(.algolia-autocomplete) {
width: 100%;
display: flex !important;
justify-content: flex-end;
}