sveltejs / sveltejs/svelte.dev
Close search box on Android back navigation
Nobody has claimed this yet.
- Dominant language
- Svelte
- Stars
- 330
- Forks
- 278
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 29
Description
This is maybe just a nitpick, but using the Android back navigation while the search box is open redirects to the previous page instead of closing the search box.
We can add an event listener and make the UI more mobile-friendly.
The video below shows the same issue:
https://github.com/user-attachments/assets/f60ddea9-1308-4a77-bbe5-7faeb0c8c65d
I would like to add this small change myself if that's fine.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the behavior shown in the linked video on Android with the search box open, then inspect the search UI and its navigation handling. Done means Android back navigation closes the search box instead of returning to the previous page.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android
- Domain
- frontend, mobile
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100