accordion icon indicating copy to clipboard operation
accordion copied to clipboard

FlipLeftIcon is only 180° but i need 90°

Open Daybayzayd opened this issue 2 years ago • 6 comments

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.

Daybayzayd avatar Sep 29 '23 09:09 Daybayzayd

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?

GotJimmy avatar Sep 29 '23 15:09 GotJimmy

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

Daybayzayd avatar Sep 30 '23 12:09 Daybayzayd

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

GotJimmy avatar Oct 01 '23 22:10 GotJimmy

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

Daybayzayd avatar Dec 06 '23 13:12 Daybayzayd

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

BuyMyBeard avatar Feb 20 '24 15:02 BuyMyBeard

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

GotJimmy avatar Feb 27 '24 21:02 GotJimmy