Skip to content

Add search bar to new top nav (tied to old search functionality) - #3348

Merged
rosslovas merged 3 commits into
mainfrom
ross/new-search-bar
Aug 14, 2026
Merged

Add search bar to new top nav (tied to old search functionality)#3348
rosslovas merged 3 commits into
mainfrom
ross/new-search-bar

Conversation

@rosslovas

@rosslovas rosslovas commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Summary

Implements a search bar into the new top nav. It's still linked to the old search experience (and also reuses the same X to clear your input from the old search bar) so it's a bit janky and still WIP, but it's usable.

Results

Try it out at: https://stoctodocspr3348.z22.web.core.windows.net/docs?newnav

Screen.Recording.2026-08-13.at.9.44.24.am.mov

Also, verify the original header (still used in production) and its search functionality still works at: https://stoctodocspr3348.z22.web.core.windows.net/docs?newnav=0

@team-marketing-branch-protections

Copy link
Copy Markdown

Pull request environment is available at https://stoctodocspr3348.z22.web.core.windows.net.

You can view the ephemeral environment status in Octopus Deploy.

This environment will be automatically deprovisioned when the pull request is closed, or after 7 days of inactivity.

@rosslovas
rosslovas marked this pull request as ready for review August 13, 2026 00:16

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Note a lot of this is just copied from the old Search.astro, it's mainly the design that's new

@enf0rc3 enf0rc3 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good, Assume we are waiting on responsive design still and this will change the shape of the search bar etc.

Appreciate the query param to conditionally show the header too, nice touch.

I tested and confirmed the Ctrl+K in windows.

one super trivial (wont fail pr on), is there is a resize of the input when you click it on hover that moves the side buttons.

20260813-0055-45.1038884.mp4

Comment on lines +54 to +65
<svg
xmlns="http://www.w3.org/2000/svg"
width="12"
height="12"
viewBox="0 0 11 11"
fill="currentColor"
aria-hidden="true"
>
<path
d="M7.585 5.5L10.7122 2.37281C11.0959 1.98906 11.0959 1.36687 10.7122 0.982812L10.0172 0.287813C9.63344 -0.0959375 9.01125 -0.0959375 8.62719 0.287813L5.5 3.415L2.37281 0.287813C1.98906 -0.0959375 1.36688 -0.0959375 0.982813 0.287813L0.287813 0.982812C-0.0959375 1.36656 -0.0959375 1.98875 0.287813 2.37281L3.415 5.5L0.287813 8.62719C-0.0959375 9.01094 -0.0959375 9.63312 0.287813 10.0172L0.982813 10.7122C1.36656 11.0959 1.98906 11.0959 2.37281 10.7122L5.5 7.585L8.62719 10.7122C9.01094 11.0959 9.63344 11.0959 10.0172 10.7122L10.7122 10.0172C11.0959 9.63344 11.0959 9.01125 10.7122 8.62719L7.585 5.5Z"
></path>
</svg>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Consider using an icon for this for consistency

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I agree, but this is just copy pasted from the old Search.astro and was not part of the new design, so I don't expect this to stay. I definitely think that whatever this might end up being replaced with should be an icon, but as is I'd rather keep it as a copy paste so it stands out like the sore thumb that it is :D

@rosslovas

Copy link
Copy Markdown
Contributor Author

one super trivial (wont fail pr on), is there is a resize of the input when you click it on hover that moves the side buttons.

Thanks, I can't seem to repro on Firefox or Chrome but I might be able to fix it regardless, I'll take a look

@ellen-octopus

Copy link
Copy Markdown
Contributor

Excellent progress @rosslovas 🎉

Is it possible to have the search bar align with the page content?
CleanShot 2026-08-13 at 12 26 33@2x

@rosslovas
rosslovas force-pushed the ross/new-search-bar branch from 95b5e83 to 6956d2f Compare August 14, 2026 00:05
@rosslovas

Copy link
Copy Markdown
Contributor Author

Is it possible to have the search bar align with the page content?

I can indeed, it should be aligned now whenever the viewport width allows for it :)

image

Copy link
Copy Markdown
Contributor

:chef: that's soooo satisfying. Thanks so much!

@rosslovas
rosslovas enabled auto-merge (squash) August 14, 2026 00:37
@rosslovas
rosslovas merged commit 4a01b43 into main Aug 14, 2026
7 checks passed
@rosslovas
rosslovas deleted the ross/new-search-bar branch August 14, 2026 00:44
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.

5 participants