Skip to content

improvement: make search shortcut less visually distracting#8255

Open
Jenil1105 wants to merge 1 commit into
webpack:mainfrom
Jenil1105:improve-search-shortcut-ui
Open

improvement: make search shortcut less visually distracting#8255
Jenil1105 wants to merge 1 commit into
webpack:mainfrom
Jenil1105:improve-search-shortcut-ui

Conversation

@Jenil1105
Copy link
Copy Markdown

Summary

This PR reduces the visual prominence of the Ctrl K shortcut inside the DocSearch search bar.

Previously, the shortcut keys appeared highly contrasted and button-like, which made them visually distracting and could give the impression that they were clickable elements rather than passive keyboard hints.

This update softens the styling by:

  • reducing contrast,
  • using subtler borders,
  • improving blending with the search bar background,
  • and keeping the shortcut discoverable without dominating the visual hierarchy.

Fixes #8254


Before

  • Shortcut keys appeared visually dominant and button-like
  • High contrast drew attention away from the search input
image image

After

  • Shortcut keys blend more naturally with the search bar
  • Softer borders and reduced contrast improve visual hierarchy
  • Maintains discoverability while feeling less distracting
image image

What kind of change does this PR introduce?

style


Did you add tests for your changes?

No. This change is purely visual/UI-related and does not affect functionality.


Does this PR introduce a breaking change?

No.


If relevant, what needs to be documented once your changes are merged or what have you already documented?

No additional documentation is required.


Use of AI

AI assistance was used for wording refinement and discussion around UI/UX considerations.
The implementation, styling decisions, testing, and final modifications were reviewed and adjusted manually.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 25, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
webpack-js-org Ready Ready Preview, Comment May 25, 2026 4:43pm

Request Review

@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla Bot commented May 25, 2026

CLA Signed
The committers listed above are authorized under a signed CLA.

  • ✅ login: Jenil1105 / name: Jenil1105 (a79d60a)

@github-actions
Copy link
Copy Markdown

👋 Hi there! This PR was automatically flagged and closed by our quality checks.

If you believe this was a mistake, please review our contributing guidelines
and leave a comment explaining why this is a mistake.

@Jenil1105
Copy link
Copy Markdown
Author

I forgot to complete the CLA authorization before opening the PR, so it was likely auto-closed by the checks. The authorization has been completed now. Would it be possible to reopen the PR for review?

@github-actions
Copy link
Copy Markdown

👋 Hi there! This PR was automatically flagged and closed by our quality checks.

If you believe this was a mistake, please review our contributing guidelines
and leave a comment explaining why this is a mistake.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improvement: make the Ctrl + K shortcut less visually distracting

2 participants