rgossiaux / svelte-headlessui

Unofficial Svelte port of the Headless UI component library
https://svelte-headlessui.goss.io
MIT License
1.79k stars 97 forks source link

Tailwind UI navbar component problem on mobile #132

Closed TheoGegout closed 2 years ago

TheoGegout commented 2 years ago

Hi ! I rewrite a Tailwind UI component from React to Svelte, everything work great but there is a little problem on the sidebar and I don't know if I did something wrong or if its a bug on the Transition or Dialog component?

Svelte Navbar Component : `

(isOpen = false)} >
{#each navigation.categories as category} selected ? "border-rose-800 text-rose-800 relative z-10 -mb-px flex items-center border-b-2 pt-px text-base font-medium transition-colors duration-200 ease-out" : "border-transparent text-gray-700 hover:text-gray-800 relative z-10 -mb-px flex items-center border-b-2 pt-px text-base font-medium transition-colors duration-200 ease-out"} > {category.name} {/each}
{#each navigation.categories as category}

Categories

Collection

Brands

{/each}
`