@mixin form-validation-state-selector($state) {
  @if $state == "valid" or $state == "invalid" {
    .was-validated #{if(&, "&", "")}:#{$state},
    #{if(&, "&", "")}.ng-touched.ng-#{$state} {
      @content;
    }
  } @else {
    #{if(&, "&", "")}.ng-touched.ng-#{$state} {
      @content;
    }
  }
}
