GotJimmy / accordion

Other
46 stars 43 forks source link

FlipLeftIcon is only 180° but i need 90° #54

Open Daybayzayd opened 11 months ago

Daybayzayd commented 11 months ago

Hello,

I'm facing the same problem than him : https://github.com/GotJimmy/accordion/issues/45

Maybe i'm a newbie, but i want a rotation of 90 on the left icon. Unfortunately, the rotation is 180 actually, and we can't parameter that.

Unfortunately, in accordionsection, we can't access to "isOpen" value to dynamically change the icon orientation when we set the "leftIcon" property.

How can we achieve this without a lot of code ?

Thanks.

GotJimmy commented 11 months ago

So you want to flip the same icon 90 degrees or use another icon when the section is open? Can you send me the icon that you're talking about?

Daybayzayd commented 11 months ago

Thanks for the Reply.

I juste want to flip the icon. It's an arrow.

When the section is closed : https://fonts.google.com/icons?selected=Material%20Symbols%20Outlined%3Achevron_right%3AFILL%400%3Bwght%40400%3BGRAD%400%3Bopsz%4024 When the section is open : https://fonts.google.com/icons?selected=Material%20Symbols%20Outlined%3Aexpand_more%3AFILL%400%3Bwght%40400%3BGRAD%400%3Bopsz%4024

GotJimmy commented 11 months ago

I might go the extra step and have an icon for closed and one for open states (both left side & right). Thoughts?

Daybayzayd commented 9 months ago

Of course. Do as you want, as long as the goal is reached ! :D

BuyMyBeard commented 7 months ago

Same here. I think it might be simpler if you can define the opened and closed icon separately

GotJimmy commented 6 months ago

I'll get to it but it will take a few weeks .. too busy right now.