Headless UI Stops Working when Adding addition elements to components

I have this component that I am trying to add a header to from tailwind UI, But when I add the header it no longer works. Here is the link to the repo I have working.tsx which is working vs index which is not working https://github.com/Tropic-OSS/Avias-Creations/blob/dev/src/pages/working.tsx https://github.com/Tropic-OSS/Avias-Creations/blob/dev/src/pages/index.tsx
GitHub
Avias-Creations/working.tsx at dev · Tropic-OSS/Avias-Creations
Contribute to Tropic-OSS/Avias-Creations development by creating an account on GitHub.
GitHub
Avias-Creations/index.tsx at dev · Tropic-OSS/Avias-Creations
Contribute to Tropic-OSS/Avias-Creations development by creating an account on GitHub.
Solution:
this div here that you have is staying on top of your nav bar, so you cant click on the nav items a way that can fix it is to have the <header> tag have "relative z-10" to move it on top of the other one, making the button clickable again and maybe removing the bg-white because it would look weird then...
Jump to solution
6 Replies
cornflour
cornflour•2y ago
is the repo private? I cannot access it
tropic
tropicOP•2y ago
oh right yes it is one sec Fixed
barry
barry•2y ago
Why is the formatting different between the pages 💀
Solution
cornflour
cornflour•2y ago
this div here that you have is staying on top of your nav bar, so you cant click on the nav items a way that can fix it is to have the <header> tag have "relative z-10" to move it on top of the other one, making the button clickable again and maybe removing the bg-white because it would look weird then
tropic
tropicOP•2y ago
Dont look on that I just added the same component that I have
tropic
tropicOP•2y ago
Thank t3ggCry
Want results from more Discord servers?
Add your server