Skip to content

Conversation

@dedyf5
Copy link
Contributor

@dedyf5 dedyf5 commented Jan 22, 2026

This PR

This PR fixes a visual bug where the search input field in the documentation modal overlaps with the "Clear the query" label.

The issue was caused by the @tailwindcss/forms plugin, which applies a global focus ring (box-shadow and --tw-ring-shadow) to all [type="search"] elements. This ring was obscuring the internal UI elements of the Algolia DocSearch component.

  • Fixes the overlap by overriding .DocSearch-Input:focus in custom.css.
  • Resets --tw-ring-offset-shadow, --tw-ring-shadow, and box-shadow to none for the search input.

Related Issues

N/A

Notes

Screenshots:

Before After
fix-search-input-overlap-before fix-search-input-overlap-after

Follow-up Tasks

N/A

How to test

  1. Run the site locally with yarn start.
  2. Open the search modal (Cmd/Ctrl + K).
  3. Type a search term (e.g., "sdk").
  4. Observe that the "Clear the query" label is no longer obscured by the blue focus border.

…overlap

Signed-off-by: Dedy F. Setyawan <dedyfajars@gmail.com>
@dedyf5 dedyf5 requested review from a team as code owners January 22, 2026 14:31
@netlify
Copy link

netlify bot commented Jan 22, 2026

Deploy Preview for openfeature ready!

Name Link
🔨 Latest commit 996e9c1
🔍 Latest deploy log https://app.netlify.com/projects/openfeature/deploys/6973c6c540f9af0008714be5
😎 Deploy Preview https://deploy-preview-1330--openfeature.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @dedyf5, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request resolves a visual bug within the documentation search modal where the focus ring of the search input field obscured the "Clear the query" label. The problem stemmed from a global style applied by the @tailwindcss/forms plugin. The solution involves a precise CSS override to disable the problematic focus ring, ensuring the search interface remains clean and fully functional.

Highlights

  • Visual Bug Fix: Addresses an issue where the search input field in the documentation modal overlapped with the "Clear the query" label, improving UI clarity.
  • Root Cause Identification: The overlap was identified as being caused by the @tailwindcss/forms plugin, which applied a global focus ring (box-shadow and --tw-ring-shadow) to search input elements, obscuring internal UI.
  • CSS Override Implementation: The fix was implemented by adding a targeted CSS override for .DocSearch-Input:focus in custom.css, resetting --tw-ring-offset-shadow, --tw-ring-shadow, and box-shadow to none.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request effectively resolves a UI bug where the search input's focus ring, added by @tailwindcss/forms, was overlapping with other elements. The fix is targeted and correct, overriding the specific CSS properties causing the issue for the .DocSearch-Input component. I've added one suggestion to include a comment in the CSS to improve long-term maintainability by explaining the purpose of this override. Overall, this is a good, clean fix.

beeme1mr and others added 2 commits January 23, 2026 14:05
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
@beeme1mr beeme1mr added this pull request to the merge queue Jan 23, 2026
@beeme1mr
Copy link
Member

Thanks @dedyf5

Merged via the queue into open-feature:main with commit 81ac8d4 Jan 23, 2026
6 checks passed
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.

2 participants