Skip to content

Conversation

@canerakdas
Copy link
Member

Description

With this PR, we aim to fix the flashing issue in the search box for users using dark theme. In addition to this fix, I have increased the spacing between the icon and the text, and hide the keyboard shortcut on mobile resolutions since the keyboard is usually not present in most scenarios.

Even if it doesn’t address the root cause, it solves the problem for now. I’ll create a separate issue for the hydration problems, which I believe are the underlying cause 🖖

Validation

There should be no flash in the searchbox in the preview build

Style changes

Before

Default;

image image

On Hover;

image image

On mobile;
image

After

Default;

image image

On Hover;

image image

On mobile;

image

Related Issues

Check List

  • I have read the Contributing Guidelines and made commit messages that follow the guideline.
  • I have run pnpm format to ensure the code follows the style guide.
  • I have run pnpm test to check if all tests are passing.
  • I have run pnpm build to check if the website builds without errors.
  • I've covered new added functionality with unit tests if necessary.

Copilot AI review requested due to automatic review settings December 23, 2025 17:31
@canerakdas canerakdas requested a review from a team as a code owner December 23, 2025 17:31
@vercel
Copy link

vercel bot commented Dec 23, 2025

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

Project Deployment Review Updated (UTC)
nodejs-org Ready Ready Preview Dec 23, 2025 5:33pm

@github-actions
Copy link
Contributor

👋 Codeowner Review Request

The following codeowners have been identified for the changed files:

Team reviewers: @nodejs/nodejs-website

Please review the changes when you have a chance. Thank you! 🙏

@codecov
Copy link

codecov bot commented Dec 23, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.65%. Comparing base (f59b46c) to head (9a493aa).
⚠️ Report is 4 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8444   +/-   ##
=======================================
  Coverage   73.65%   73.65%           
=======================================
  Files         108      108           
  Lines        9193     9193           
  Branches      312      312           
=======================================
  Hits         6771     6771           
  Misses       2420     2420           
  Partials        2        2           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR refactors the search box component to address a flashing issue experienced by dark theme users, likely related to hydration. The changes include moving transition properties to only apply on hover (as a workaround), increasing spacing between the search icon and text, and hiding the keyboard shortcut indicator on mobile devices.

Key changes:

  • Restructured hover state to only apply transitions during hover, preventing the flash during initial render
  • Improved visual spacing by increasing the gap between icon and text from gap-1 to gap-2 and adding pl-1
  • Made keyboard shortcut (⌘ K) responsive by hiding it on mobile and showing it on medium+ screens

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ovflowd ovflowd added the fast-track Fast Tracking PRs label Dec 23, 2025
@ovflowd
Copy link
Member

ovflowd commented Dec 23, 2025

Let's fast-track to fix this issue.

@ovflowd ovflowd added this pull request to the merge queue Dec 23, 2025
Merged via the queue into nodejs:main with commit 26885a8 Dec 23, 2025
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fast-track Fast Tracking PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants