Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: dividers have a default margin-inline that can't be overridden #3421

Open
adamhl8 opened this issue Jan 27, 2025 · 2 comments
Open

bug: dividers have a default margin-inline that can't be overridden #3421

adamhl8 opened this issue Jan 27, 2025 · 2 comments
Assignees
Labels

Comments

@adamhl8
Copy link

adamhl8 commented Jan 27, 2025

What version of daisyUI are you using?

5.0.0-beta.2

Which browsers are you seeing the problem on?

All browsers

Reproduction URL

https://play.tailwindcss.com/3hoG7uvDOI

Describe your issue

Starting with v5, dividers have default margin-inline that can't be overridden. See the playground link. The spacing is off because the parent space-x-2 isn't applying.

Copy link

Thank you @adamhl8 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.

@saadeghi saadeghi self-assigned this Jan 27, 2025
@saadeghi saadeghi added the v5 label Jan 29, 2025
@saadeghi
Copy link
Owner

Update to [email protected].
Margins are now customizable using utility classes like m-*, mx-*, my-*
It's not going to work with space-x-* tho. space-x-* doesn't rewrite existing margin of items (example)

For the example you linked, you can either use gap-* or you can set custom margin to the divider:
https://play.tailwindcss.com/2CWytQJrfG

Let me know if you have a question.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants