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
Thank you @john-ccli
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.
The design is to let the 2nd element grow (based on the general ideea/design of an alert box with icon | content | actions).
I don't see an easy way to detect if the second column is content or actions.
But you can align buttons with tailwind classes (justify-self-end): https://play.tailwindcss.com/opz8lzqqAc
I removed the button wrapper because it is just one, but the exact same goes for a wrapper.
The design is to let the 2nd element grow (based on the general ideea/design of an alert box with icon | content | actions). I don't see an easy way to detect if the second column is content or actions.
But you can align buttons with tailwind classes (justify-self-end): https://play.tailwindcss.com/opz8lzqqAc I removed the button wrapper because it is just one, but the exact same goes for a wrapper.
That's fair- this could just be a documentation issue then. I was thrown off at first because the documentation shows alert examples where the first element is the content, so I assumed the second element would be the actions.
Hi, I was able to reproduce this using the Tailwind Play link — confirmed the button floats left when there's no icon div. I'd like to work on this as my first contribution. Is it still open?
@Rupsa-Karmakar Yes, PRs are welcome 💚
Please make sure the change will only cover this case and it won't change other behaviors or break existing websites.
Activity
github-actions commentedon Sep 2, 2026
Thank you @john-ccli 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.
pdanpdan commentedon Sep 2, 2026
The design is to let the 2nd element grow (based on the general ideea/design of an alert box with icon | content | actions).
I don't see an easy way to detect if the second column is content or actions.
But you can align buttons with tailwind classes (
justify-self-end): https://play.tailwindcss.com/opz8lzqqAcI removed the button wrapper because it is just one, but the exact same goes for a wrapper.
john-ccli commentedon Sep 2, 2026
That's fair- this could just be a documentation issue then. I was thrown off at first because the documentation shows alert examples where the first element is the content, so I assumed the second element would be the actions.
Rupsa-Karmakar commentedon Sep 19, 2026
Hi, I was able to reproduce this using the Tailwind Play link — confirmed the button floats left when there's no icon div. I'd like to work on this as my first contribution. Is it still open?
saadeghi commentedon Sep 22, 2026
@Rupsa-Karmakar Yes, PRs are welcome 💚
Please make sure the change will only cover this case and it won't change other behaviors or break existing websites.
feat(alert): adapt layout in case the icon is missing or not (#4785)
feat: v5.8 (saadeghi#4857)