Hello! I know this has probably been asked a million times, but I haven't been able to find a specific answer. I'm trying to change the text color inside of a button using MouseIn and MouseOut because the "customize design" options do not seem to be working. I need button options for my design because I'm programing custom hover features connected to them. In wanting to change the text color on hover, am I trying to do something that can only be done using html? If so, how can I switch over to change the text color inside of the button. Thank you in advance for any help on this! Here's what I'm working with:
export function RiskHover_mouseIn(event) { //Add your code for this event here: $w('#riskstrip').show("FadeIn"); $w('#coverstrip').show(); $w("#riskbutton").style.color="rgb(255,69,0)" } export function RiskHover_mouseOut(event) { //Add your code for this event here: $w('#riskstrip').hide(); $w('#riskbutton').style.color = "rgb(255,255,255)";
https://www.wix.com/corvid/forum/community-discussion/change-text-color-on-mousein
https://www.wix.com/corvid/forum/community-discussion/change-text-color-on-hover
Or better still, just use the settings within the Wix Editor for regular, hover, clicked, disabled etc.
https://support.wix.com/en/article/customizing-the-color-and-font-of-your-button-text