How to make a component navigate to a new page and change variant in one click?

Is it possible for a component to navigate to a different page and then change variant after its been clicked, all in one click? The only way i know is to change the colour on hover but thats the wrong way for what i need, i only want it to change after its been clicked.

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