Search on a phone: tapping the icon should open a search field in place, not load a separate page #350
Labels
No labels
accessibility
authentication
breaking change
bug
documentation
enhancement
interface
internationalisation
observability
performance
security
tier
1
tier
2
tier
3
tier/4
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Postulo/postulo#350
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Requested by the maintainer on 2026-10-01.
On a phone held upright the header has no room for the search box, so since #299 it shows a magnifying glass that is a link to the search page (
templates/base.html:133-134,data-search-link, shown belowlg). Tapping it loads a whole new page whose only content is a box to type in: one page load and one more tap before the first letter, and the person has left the page they were on to do it.Asked for: on a phone, tapping the icon opens a search field where the person already is. Two ways were named, either is acceptable:
The second is the smaller change and keeps the header one row high, which matters on a small screen with the keyboard up; the first is the better base if search on a phone is meant to grow. The maintainer chooses.
What it has to keep
core:search, which is what it is today; the field in place is what a script adds. Nothing may depend on an inline script (the content security policy allows none): the behaviour lives instatic/js/app.js.core:searchwithq, like the wide header's box (base.html:135-139).aria-expanded), and the field has its label. If it is a drawer, it is a dialog with a name, and focus stays inside it while it is open. The/shortcut opens it at this width, as it focuses the box at the wide one.type="search"withenterkeyhint="search", and text large enough that iOS does not zoom the page when the field takes focus.templates/partials/nav_links.html:47) should open the same thing rather than the page, so there is one way to search on a phone, not two.Done when