Skip to content

Conversation

septatrix
Copy link
Contributor

@septatrix septatrix commented Apr 12, 2023

Fixes #117.

The "Hide Search Matches" was not properly integrated into the layout, removing the ID reverts it to the previous behaviour where the toggle was suppressed.

Ideally we would have this working properly, however, sphinx sets this based on ID and we have more than one search forms so this would not show up properly (at the top and bottom of the desktop layout, and one in the mobile layout). With some CSS trickery it might be possible to reuse a single form element for the desktop and mobile layout such that this could be reasonably supported (and do without the toggle for the search form at the bottom) though this is a decent bit more complex and I am currently short on time.

@hugovk hugovk changed the title Remove searchbox id from form (fixes #117) Remove searchbox ID from form Apr 13, 2023
Copy link
Member

@hugovk hugovk left a comment

Choose a reason for hiding this comment

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

Thanks, looks good:

image

@hugovk hugovk merged commit b134985 into python:main Apr 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dark theme: "Hide Search Matches" shown on mobile
2 participants