_validation.scss 411 B

12345678910111213141516171819
  1. // reason: contextual states
  2. // valid state
  3. .custom-control-input.is-valid {
  4. &:not(:disabled):active {
  5. ~ .custom-control-label::before {
  6. background-color: $success;
  7. border-color: $success;
  8. }
  9. }
  10. }
  11. // invalid state
  12. .custom-control-input.is-invalid {
  13. &:not(:disabled):active {
  14. ~ .custom-control-label::before {
  15. background-color: $danger;
  16. border-color: $danger;
  17. }
  18. }
  19. }