Skip to content

fix(navbar): remove conflicting docsearch deps and CSS overrides#893

Open
shreya1510ss wants to merge 1 commit into
mainfrom
fix/navbar-search-box
Open

fix(navbar): remove conflicting docsearch deps and CSS overrides#893
shreya1510ss wants to merge 1 commit into
mainfrom
fix/navbar-search-box

Conversation

@shreya1510ss

Copy link
Copy Markdown
Contributor

##What has changed?
Issue: The navbar search box was not styled correctly, unlike the default clean look on stock Docusaurus sites.

image

Cause:
@docsearch/react/@docsearch/core were unnecessarily added directly in package.json, conflicting with the version already bundled by @docusaurus/preset-classic.
Custom !important CSS overrides on .DocSearch-Button in src/css/custom.css were fighting DocSearch's default styling.
Fix: Removed both, restoring the default clean search box look.

Fixes https://github.com/keploy/enterprise/issues/2291

Image after fix

image

Signed-off-by: Shreya Sharma <shreyasharma.1510001@gmail.com>
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.

1 participant