In case of error, I need to change the text of TextField
to var(--lumo-error-text-color)
I tried the following:
textField.getStyle().set("color", "var(--lumo-error-text-color)");
but it doesn't work. How to properly change the text color of TextField component?