What I’m trying to do:
Create a role preventing default hover behavior
What I’ve tried and what’s not working:
create a few roles
Code Sample:
# this is a formatted code snippet.
I added these three
.anvil-role-disable_hover:hover {
text-decoration: none;
color: inherit;
}
.anvi-role-RichText-color {
a:link {
color: white;
}
/* visited link */
a:visited {
color: inherit;
}
}
# paste your code between ```
Sure is – but i first tried this one –
.anvil-role-disable_hover:hover {
text-decoration: none;
color: inherit;
}
and it failed – I quickly added the last two – so let me fix that and see if it works, thank you – BRB
Did you make Anvil aware of those roles in the role editor? Anvil doesn’t parse the CSS files looking for role classes automatically - you have to tell it that a role exists!