damien-schneider / cuicui

CuiCui is a collection of high-quality, reusable components designed to streamline the development of your web applications. With a focus on providing essential UI elements, pre-built blocks, and templates, CuiCui enables you to quickly and effortlessly create professional-grade websites and SaaS platforms featuring top-notch user interfaces.
https://cuicui.day
MIT License
178 stars 11 forks source link

[upgrade]: Improve Testimonial Q&A #26

Open AlexandreBillereau opened 2 weeks ago

AlexandreBillereau commented 2 weeks ago

Feature Description

Improve Testimonial Q&A Component: Enhance SVG Arrow Animation

Description:

The current implementation of the SVG arrow in the Testimonial Q&A component uses a 180-degree rotation to indicate the expansion of a question. While functional, this approach results in a misalignment of the SVG when a question is opened, detracting from the overall user experience.

image

https://github.com/user-attachments/assets/01aaa4fa-a316-4f10-b082-7dc73d08a74d

Proposal:

Acceptance Criteria:

Affected Component(s)

testimonial - Q&A

Additional Context

Additional details here...

Before Submitting

damien-schneider commented 2 weeks ago

Thank you very much for the issue. The issue is very interesting, and it is true that the alignment of the arrow is off when the answer is opened.

The advantage of the arrow is its accessibility; the UX is less accessible with just a minus icon. The suggestion is interesting and can serve as a variant if you find it worthwhile to develop. But I think to fix the existing variants, only modifying the top value when opened would be great from my point of view, such as adding group-open:top-10 or something close to this.

To summarize, I would suggest creating a variant with the minus icon and modifying the existing variants by adding group-open:top-.... what do you think about this ?