-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Closed
Description
What version of Tailwind CSS are you using?
4.0.0-beta.6
What build tool (or framework if it abstracts the build tool) are you using?
Standalone CLI in Phoenix Framework
What browser are you using?
For example: Arc
What operating system are you using?
For example: macOS
Reproduction URL
https://play.tailwindcss.com/y0WgeyArkt
Describe your issue
This was working in Tailwind 3 but broke in Tailwind 4. The issue is that mr-2 on the image element prevents the space-x-12 utility from the parent. In Version 3 they got both applied and in Version 4 the spacing-x is not applied.
<div class="flex items-center space-x-12">
<img src="https://placehold.co/600x400" class="mr-2 h-8 rounded-sm" />
<ul class="flex flex-row items-end">
<li class="p-2">Nav 1</li>
<li class="p-2">Nav 2</li>
</ul>
</div>I don't know if this is a known breaking change, but i couldn't find it in the new docs or in the changelog. Maybe i missed it somewhere.
Metadata
Metadata
Assignees
Labels
No labels