I’ve been trying for some time now to get a custom role to work on my text boxes with no luck. I have added for example this custom role in the .css asset:
.anvil-role-red {
color: #ff0000;
}
I also created the corresponding role in the Roles section both restricted to TextBox and for all components.
I’m sure there is a simple solution to this, but it has eluded me.
I was finally able to get it to work (without the need for the “!importance” decleration). Not sure what was going on, but it seems to be working now, maybe it needed to be at the bottom, but thought I had tried that previously?