You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm having an issue trying to style my tabs.
I want to have bordered radio tabs (with content), but with a gap between them.
Since the tabs class is actually a grid, I thought I'd add a gap-4 to space between the tabs.
What ended up happening, is that my content became about 160k pixels wide.
From my investigation, it has to do with this line.
It seems that spanning the tab-content class across span 9999 doesn't matter if there are no gaps, but if there are gaps - this causes the existence of 9999 gaps, which causes the very wide content container.
For now I solved it by putting mr-4 on each of the tabs but the last one, but I think this is an inherent problem that might cause other issues as well, and might be appropriate to address.
Thank you @itaiperi
for reporting issues. It helps daisyUI a lot 💚
I'll be working on issues one by one. I will help with this one as soon as a I
find a solution.
In the meantime providing more details and reproduction links would be
helpful.
All direct children of tabs are placed using grid, including the tab and the tab-content and adding gap to all of them breaks the layout. Instead you can add a class name like [&>input]:me-4 to add a margin, only for the tab: https://play.tailwindcss.com/mPNWpjaQHX
What version of daisyUI are you using?
v4.4.24
Which browsers are you seeing the problem on?
Chrome
Reproduction URL
https://play.tailwindcss.com/fpT7ztW4FM
Describe your issue
Hi,
I'm having an issue trying to style my tabs.
I want to have bordered radio tabs (with content), but with a gap between them.
Since the
tabs
class is actually a grid, I thought I'd add agap-4
to space between the tabs.What ended up happening, is that my content became about 160k pixels wide.
From my investigation, it has to do with this line.
It seems that spanning the
tab-content
class acrossspan 9999
doesn't matter if there are no gaps, but if there are gaps - this causes the existence of 9999 gaps, which causes the very wide content container.For now I solved it by putting
mr-4
on each of the tabs but the last one, but I think this is an inherent problem that might cause other issues as well, and might be appropriate to address.Here's a minimal reproducible example:
The text was updated successfully, but these errors were encountered: