Skip to content

Improve search UI and UX - #738

Open
sauravsinhadev wants to merge 1 commit into
scientific-python:mainfrom
sauravsinhadev:fix/search-ui-ux
Open

sauravsinhadev wants to merge 1 commit into
scientific-python:mainfrom
sauravsinhadev:fix/search-ui-ux

Conversation

@sauravsinhadev

Copy link
Copy Markdown

Summary

Refines the light-mode appearance and ergonomics of the search <dialog> (PagefindUI) in the Scientific Python Hugo Theme:

  • Clean light-mode surface: Uses a #ffffff dialog card with subtle #d0d7de / #eaeef2 borders instead of heavy dark outlines, keeping visual consistency with light-mode documentation pages.
  • Compact Clear + Esc control: Aligns a compact Clear + Esc button vertically inside the search input so users can clear the query or close the modal cleanly.
  • Scrollable results & spacing: Adds clean outer/inner margins on result items and bounds results height (overflow-y: auto) so long result lists scroll smoothly without overflowing the viewport.
  • Lightweight implementation: Avoids continuous MutationObserver loops or heavy GPU backdrop blurs to prevent browser lag.

Screenshot

image image

Testing

  • Tested opening and closing search via the search button and Ctrl/Cmd + K.
  • Tested typing queries, clearing via Clear / Esc, and scrolling through search results.
  • Verified no console errors or UI lag.

Related issue

Closes #724

@netlify

netlify Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for scientific-python-hugo-theme ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit b2ab420
🔍 Latest deploy log https://app.netlify.com/projects/scientific-python-hugo-theme/deploys/6b126dedb00b3d10a553cc99
😎 Deploy Preview https://deploy-preview-738--scientific-python-hugo-theme.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 94
Accessibility: 97
Best Practices: 100
SEO: 91
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

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.

Improve design of search button in navbar

1 participant