-
Notifications
You must be signed in to change notification settings - Fork 93
feat: keep search box in header #313
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
1f40bc9 to
598d5e5
Compare
|
might need to update the current search behaviour tests 🙏 |
598d5e5 to
0b0fdaa
Compare
tests/interactions.spec.ts
Outdated
| // manually focus search | ||
| await searchInput.focus() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we want it to autofocus when the search page is opened.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have gone with autofocus on the search input.
I did start down a hacky approach to only focus when AppHeader is mounted and route is search. I can switch to that approach if we want it to only happen on the search page instead of any "first load" page.
3f94d66 to
402df59
Compare
danielroe
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
|
we should think about mobile view too.... currently there's no search input on mobile might want to have a small input that goes full width when focused? |
Avoid taking up space for searchbox on search page. Mainly moved the query string watching from search.vue to AppHeader.vuue # Conflicts: # app/components/AppHeader.vue # app/pages/search.vue # Conflicts: # app/components/AppHeader.vue # app/pages/search.vue
Selected item was jumping when scrolling up because of focus. Hook to the up/down arrows on a document level instead of section level.
Improve search on mobile. Smaller search box that expands full width on click.
402df59 to
d2befa5
Compare
|
This is where I got to for mobile Screen.Recording.2026-01-29.at.21.55.29.mov |
|
looks perfect to me! |
# Conflicts: # app/pages/search.vue
Avoid taking up space for searchbox on search page.
Mainly moved the query string watching from search.vue to AppHeader.vue
Closes #291
Screen.Recording.2026-01-29.at.17.43.18.mov