DevExpress / bootstrap-themes

Themes for Bootstrap
MIT License
59 stars 40 forks source link

Customize validation colors #30

Closed sven5 closed 3 years ago

sven5 commented 3 years ago

Hi guys,

Currently I came across one issue. We like to customize the valid modified styles when using the controls in an EditForm. That is the following css rule:

.dx-blazor-checkbox.valid.modified .custom-control-input:checked+.custom-control-label::before, .dx-blazor-checkbox.valid.modified .custom-switch .custom-control-label::before, .dx-blazor-checkbox.valid.modified .custom-switch .custom-control-label::after {
    background-color: #26b050;
}

These rules are defined in dx-blazor.css - I guess there is currently no way to have it through custom styling (scss variable).

outsidergiant commented 3 years ago

Hello Sven,

Your assumption is correct. We use our own variable, which does not depend on the Bootstrap colors. We'll see if we can replace it with a Bootstrap variable.

If the current implementation causes issues in your project, please submit a ticket to our Support Center. We will research it separately.