How do I change the border of a single input through CSS

Hello,

I’m trying to change the border of an input to red whenever there is an invalid value. I’m already changing the border to black using the SDK but how do I change a single input to red using CSS?

Sincerely,
Elijah

Screenshot 2024-05-08 at 12.22.10 PM

Hello,

You may assign a specific class to the input element for which you wish to change the border color, and apply similar CSS styles accordingly:

.bl-input.your-custom-class-name {
  fieldset {
    border-color: red !important;
  }
}

Regards,
Alexander

1 Like