Looks like modal toggles with text area enabled don’t allow inline css in the text field?
I’ve seen this once or twice on the main forum but thought I’d leave it here as it still appears to be happening in 4.0.11. Perhaps it is intentional but odd that it works as expected on buttons but not modal toggles.
Backend Preview:

Frontend Reality:
