Skip to main content
Harshesh_Sayani2
March 29, 2023
Solved

Issue with hover state of an interactive component instance (button) inside an instance of another component

  • March 29, 2023
  • 2 replies
  • 1935 views

Hi all,

I have come across some unexpected behaviour when I am trying to use an instance of my Button component inside another component. My Button component consists of an Icon Wrapper to adjust the size of the icon as suggested by @Ridd in the past. When I change the icon using the Swap Icon property and try to hover over the button, the icon seems to not preserve the color. I have kept the nomenclature the same for all icons.
This is the structure I am following -

Please check the GIF below to understand the issue better -

Actual behaviour

I am scratching my head for the past couple of days over this issue, but can’t seem to understand the problem. I have created a Figma file as a sample and would really appreciate any help on this -

Figma – 28 Mar 23

Thanks in advance!

This topic has been closed for replies.
Best answer by tank666

2 replies

tank666
tank666Answer
March 29, 2023
UX/UI designer. Figma expert. Creator and developer of plugins and widgets for Figma and FigJam. Check out my resources in Figma Community: figma.com/@tank
Harshesh_Sayani2
March 30, 2023

Hi Yury, this helped us. I really appreciate your help, thank you!
legend