Navbar renders a useless SearchBox element when site does not have any search plugin #8889
Closed
4 of 7 tasks
Labels
bug
An error in the Docusaurus core causing instability or issues with its execution
Milestone
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
Hi, I was using the version beta .20, then I updated all my docusaurus dependencies to the latest, but, even though I haven't installed the search package or have no item of type search in my docusaurus.config, I still notice a div with searchBox_node_modules-@docusaurus-theme-classic-lib-theme-Navbar-Search-styles-module as class in my navbar. And I can't find any reference to it in my project.
It's just the stylings given in a css found in the node_modules, which is a media-query with min-width 997px
Can you please help me?
Reproducible demo
No response
Steps to reproduce
visit my website www.fattura24.com and if you inspect the code you can see at the most right of the navbar a little div which eats up a little space, with class specified in the description.
Expected behavior
no div with SearchBox
Actual behavior
div with class SearchBox
Your environment
node 18
docusaurus 2.4.0
Self-service
The text was updated successfully, but these errors were encountered: