Skip to content

Navbar renders a useless SearchBox element when site does not have any search plugin #8889

@tyzion

Description

@tyzion

Have you read the Contributing Guidelines on issues?

Prerequisites

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

  • I'd be willing to fix this bug myself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn error in the Docusaurus core causing instability or issues with its execution

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions