The <NavUl> component contains a <ul>, which cannot be styled properly. Furthermore, it looks different when you:
Decrease the viewport width so that the <NavHamburger> appears
Expand the hamburger menu
Increase the viewport width again.
Original look
Bugged Look
Notice how there is now a rounded border around the <NavUl>.
This problem is worse if there is custom styling applied to the outer <Navbar>. Setting classUl on the <NavUl> leads to other, still undesirable behavior.
Original Look
Here, I have two <Navbar>: the first one has classUl unset whereas the second one has classUl="bg-blue-500"
Bugged Look
I repeat the steps to trigger the bug.
The behavior I would like to achieve is where:
<Navbar> has a custom background color
<NavUl> has a custom background color when the hamburger menu is expanded
<NavUl>'s background color is unset on wide viewports
Sadly the desired behavior is not possible.
Reproduction
Sorry, I don't feel comfortable authorizing Stackblitz with my GitHub account. I reproduced the issue in Stackblitz. Here is the diff:
Describe the bug
This bug is apparent on https://flowbite-svelte.com/docs/pages/introduction
The
<NavUl>
component contains a<ul>
, which cannot be styled properly. Furthermore, it looks different when you:<NavHamburger>
appearsOriginal look
Bugged Look
Notice how there is now a rounded border around the
<NavUl>
.This problem is worse if there is custom styling applied to the outer
<Navbar>
. SettingclassUl
on the<NavUl>
leads to other, still undesirable behavior.Original Look
Here, I have two
<Navbar>
: the first one hasclassUl
unset whereas the second one hasclassUl="bg-blue-500"
Bugged Look
I repeat the steps to trigger the bug.
The behavior I would like to achieve is where:
<Navbar>
has a custom background color<NavUl>
has a custom background color when the hamburger menu is expanded<NavUl>
's background color is unset on wide viewportsSadly the desired behavior is not possible.
Reproduction
Sorry, I don't feel comfortable authorizing Stackblitz with my GitHub account. I reproduced the issue in Stackblitz. Here is the diff:
Flowbite version and System Info