-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
bug: Collapse with icon, Arrow is jumping but plus/minus icon seems ok #2725
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
Comments
Thank you @OlegSuncrown
for reporting issues. It helps daisyUI a lot 💚
|
Hello @OlegSuncrown 😄 |
This fix caused the arrow being not centered when the title bar is not the default height. |
Thanks for your feedback, I'll take a look and suggest another solution. |
After trying different approaches, I can't seem to solve the problem. I've noticed that my first idea solved the problem, but it's no longer centered. However, when the top is defined as a percentage, the problem persists. Looking for another solution, I found that by placing the svg in the dom, we could probably align the text and arrow without the problem of displacement when rotating. This involves changing the architecture of the component. If anyone can find a simpler solution, I'd be very interested. 😄 |
What version of daisyUI are you using?
v4.5.0
Which browsers are you seeing the problem on?
Chrome
Reproduction URL
https://play.tailwindcss.com/EqKz1x2vVS
Describe your issue
Collapse with checkbox and icon with more content has Arrow Icon what is jumping but plus/minus icon seems ok.
In the Arrow Icon:
.collapse-arrow > .collapse-title:after { top: 50% }
that's why animations is weird, but it properly centered.In the
.collapse-plus > .collapse-title:after { top: 0.9rem; }
that's why it looks ok.Maybe something like this: https://play.tailwindcss.com/i2LKgeYQ1o?file=css
The text was updated successfully, but these errors were encountered: