Change field validation error text color

Change field validation error text color

ingezoneingezone Posts: 20Questions: 8Answers: 0

Hi Allan,

How can I change the size and color of the field validation error text using bootstrap 5.

I tried the following codes, but they don't work.

div.DTE_Field div.DTE_Field_Error {
       color: yellow;
 }

 div.DTE_Field div.help-block {
       color: yellow;
 }

Regards!

Replies

  • allanallan Posts: 63,676Questions: 1Answers: 10,497 Site admin

    .text-danger is the CSS class you want to override for Bootstrap 5.

    div.DTE_Field div.text-danger {
      color: yellow;
    }
    

    Allan

  • ingezoneingezone Posts: 20Questions: 8Answers: 0

    Allan

    Thanks, I made a small change for the color and it works 100%.

        div.DTE_Field div.text-danger {
            color: yellow !important;
            font-size: 0.9em;
        }
    

    Regards!

Sign In or Register to comment.