Decathlon / vitamin-web

Decathlon Design System UI components for web applications
https://decathlon.github.io/vitamin-web
Apache License 2.0
282 stars 76 forks source link

feat: able to add a tag at the right of the accordion component summary #1314

Closed MaelthiS closed 1 year ago

MaelthiS commented 1 year ago

We would like to add more informations in the summary of the VtmnAccordion component, as the text at the left is sometimes not enough to transmit informations. Describe the solution you'd like We would like to be able to add text at the right of the summary of the VtmnAccordion component. This text should have its own className to be able to style it a minimum. The tag should be visible when the accordion is opened and closed. Below is an example our designers designed. image

thibault-mahe commented 1 year ago

Hi @MaelthiS , thanks for the suggestion :)

Creating a specific slot in this location could be helpful indeed. Unfortunately it is not my responsibility to validate or not the addition of features to existing components. As of today, our process of contribution for new components and for updating existing components is still in discussion, but a good first step could be to open an issue directly on the vitamin-design repository. The team will be very reactive to this need there :)

If you need help: https://github.com/Decathlon/vitamin-design/blob/main/CONTRIBUTING.md https://github.com/Decathlon/vitamin-design/blob/main/CODE_OF_CONDUCT.md

As it stands, I will close this issue on this repository. But do not hesitate reopening it if you feel like it still should be addressed here :)

Thanks