Reply To: how to set border on select2-dropdown when required

#10034278
Support
Keymaster

Hello Pelle,

We hope everything is well with you too!

Here’s the CSS code you need:

:required,
select[data-plugin-selecttwo]:required + .select2 .select2-selection {
    border-left-color: limegreen !important;
}

/* Dark */
html.dark :required,
html.dark select[data-plugin-selecttwo]:required + .select2 .select2-selection {
    border-left-color: limegreen !important;
}

For select2 is needed the selector select[data-plugin-selecttwo]:required +.

We hope this helps!

Kind Regards,

Rodrigo.


If you are satisfied with Porto HTML and our support, please leave your comment and rating on ThemeForest downloads page. That helps us a lot: https://themeforest.net/downloads