Repository navigation
Simplify search results and let hover select a result - #4806
Merged
Merged
Conversation
Search results drop the page icon and keep breadcrumbs on one line: the first crumb, a "⋯" whose tooltip lists the steps in between (after a 1s hover), and the last crumb, cut short when space runs out. Hovering a result now selects it, so the mouse and the arrow keys share one highlight and Enter opens the row under the mouse. Cut-off results fade out, with the scroll arrow shown whenever more results are below. The keyboard shortcut hints are gone from the popover. Fixes RND-14208
Breadcrumbs in search results show the whole path when it fits. When it doesn't, the levels next to the root fold one at a time into the "⋯" in second place until the line fits, and the last crumb is cut short only once everything between is folded. Each crumb is capped at 200px and shows its full title when cut. Part of RND-14208
🦋 Changeset detectedLatest commit: aef2bd3 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Contributor
|
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
Contributor
Style invalidation on a large API referenceElements restyled by opening one popup on the Snyk API reference. A share near or above 100% means the insertion restyles the whole document.
|
gregberge
approved these changes
Nov 18, 2026
The hook calls back once on mount and on every resize, and skips the observer in browsers without ResizeObserver. Part of RND-14208
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
Problem: Search results are busy. Every result repeats the same page icon. Long breadcrumbs wrap onto two lines. The mouse and the keyboard each draw their own highlight.
Outcome: Results are easier to scan. The highlighted result is always the one Enter opens.
Proposed changes
⋯in second place until the line fits. The folded levels show in a tooltip after a 1s hover.⌘I, Navigate and Close hints are gone. The footer only shows when there is a scope filter.ScrollContainergets opt-infade: 'long'andbuttonAlwaysVisibleoptions. Its other users are unchanged. The search request, result order, Ask flow andsearch_open_resultevent stay the same.Fixes RND-14208
Demo
The same search on gitbook.com/docs. Main is on the left, this branch on the right.
search-before-after.mp4
Merge danger
Door: two-way
A revert brings back the icons, wrapped breadcrumbs and hints. No data or API contract changes.
Blast radius: search popover, mobile search sheet and embedded search on every published site
Every site's search looks different by default. Search visual snapshots change.
Changelog