Even after setting class="focus:outline-none whitespace-normal rounded-lg focus:ring-2 p-1.5 focus:ring-gray-400 hover:bg-gray-100 dark:hover:bg-gray-600 m-0 mr-3 lg:hidden" or using the same btnClass from the demo code, it is not working.
The NavHamburger will also not trigger the correct menu to open, instead of opening the Drawer, it will open the Navbar.
Describe the bug
From the docs https://flowbite-svelte.com/docs/components/navbar#NavHamburger_styling
It says using class prop will allow to overwrite btnClass, but trying to set
class="lg:hidden"
does not overwrite the default md:hidden. I am trying to make the navbar appear on a larger screen size '1024px' than '768px', referencing from https://github.com/shinokada/flowbite-sveltekit-responsive-sidebar-layout/blob/main/src/routes/%2Blayout.svelteHowever, if I downgrade my version to
flowbite 1.7.0
andflowbite-svelte 0.40.2
to match the above repository, it will work.Reproduction
Copy the +layout.svelte into a new Sveltekit project with the latest flowbite and flowbite-svelte versions and it will not work as expected from the demo of https://github.com/shinokada/flowbite-sveltekit-responsive-sidebar-layout/blob/main/src/routes/%2Blayout.svelte
Even after setting
class="focus:outline-none whitespace-normal rounded-lg focus:ring-2 p-1.5 focus:ring-gray-400 hover:bg-gray-100 dark:hover:bg-gray-600 m-0 mr-3 lg:hidden"
or using the samebtnClass
from the demo code, it is not working.The NavHamburger will also not trigger the correct menu to open, instead of opening the Drawer, it will open the Navbar.
Flowbite version and System Info