-
What version of Tailwind CSS are you using? For example: v4.0.12, v3.4.17 What build tool (or framework if it abstracts the build tool) are you using? For example: Vite 6.1.0 What version of Node.js are you using? For example: v23.9.0 What browser are you using? For example: Chrome, Safari What operating system are you using? For example: macOS Reproduction URL https://play.tailwindcss.com/RJdN8e6ZgV Describe your issue I'm building an collapsible accordion component. I noticed current |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
This is a side-effect of a breaking change. The docs talk about Space-between but this does apply the same to
So in your example in v3, all but the first element gets |
Beta Was this translation helpful? Give feedback.
-
Ah, i see. But this inefficient since I could no longer use I've tried using arbitrary selector something like However I will not close this discussion just in case someone or future me had figured this out. |
Beta Was this translation helpful? Give feedback.
This is a side-effect of a breaking change. The docs talk about Space-between but this does apply the same to
divide-*
too:So in your example in v3, all but the first element gets
border-top
. In v4, all but the last element getsborder-bottom
.