Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Can Action Buttons buttons be styled 'on use'?

Heya guys,  Updating the Witcher Sheet's tab section to the latest recommended way of doing it from CSS Wizardly (to allow firefox functionality). As it currently stands, the old method allowed CSS to colour whichever tab the user was currently set to (see screenshot). Is this also possible with the Action Button method linked above?
1605715895
Andreas J.
Forum Champion
Sheet Author
Translator
Pretty sure a bunch of sheets already does it in one way or another, at least the PF2E sheet comes to mind as an example, which you could check the latest public code for.
1605717207
Finderski
Plus
Sheet Author
Compendium Curator
Yes, you can. Just have the sheet worker set a value for a hidden input element before the button, so you can use that info to style the button. If you nee a working example, the Official Savage Worlds sheet does this for all the action buttons across the top panel.
Oh wonderful, i'll have a go at that! Thanks guys.
Finderski, great job on the Savage Worlds sheet... that's some serious work there, and very impressive. My goodness!