Validation Error Text Not Using Theme Color Override

I’ve recently modified my dark mode theme to use an error color that doesn’t bleed into the background, but it appears the value isn’t being used for ValidationError text.

We can see in this example where I’m using a Stepper that the color at the top of the stepper is the correct one I set in the theme override (orangered #FF4500), but the validation text down below is not and always uses red (#FF0000).

In inspecting the page, this appears to be due to the fact that this element applies its own style rather than referencing a class.

In the ValidationError div: {
    color: red;

Is there a separate method to override this color or would it have to be changed in a PSU update?


Product: PowerShell Universal
Version: 2.11.1

I’ll open an issue for this. We shouldn’t be using element styles like that but rather use the theme styles. It will be hard to override currently.

1 Like