Skip to main content
Question

How do you change a button's hover color as an instance?

  • June 7, 2023
  • 1 reply
  • 1355 views

jhuang

Hey friends, I have a question:

How do you change a button’s hover color when using it as an instance component?

Scenario:

Master component button - has multiple button states that are already linked up via prototype

I put the (instance) of the button into another project via a library. I can then freely change the color of the button in it’s default state, but the problem: On hover, it becomes the same color as the one in the main component…which is normally fine, but I need it to change to a color that I want for this specific project. I’d like to be able to keep the hover animation but be able to change the color.

Is this possible? The only way I can think about hacking it is creating a specific hover variant with the colorway that I want for this specific project. It’s not sustainable though because I really want to be able to just change it on the fly…

Thanks in advance.

This topic has been closed for comments

1 reply

  • 0 replies
  • July 7, 2023

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings