Skip to content

Improve native form validation handling #136

Description

@robsonsobral
  /* old browsers */
  &:invalid {
    /* Invalid input UI styles */    
  }

  &:valid {
    /* Valid input UI styles */    
  }

  @supports selector(:user-invalid) {
    &:invalid {
      /* override old browsers styles */
      /* Valid input UI styles */
    }

    &:user-invalid {
      /* Invalid input UI styles */
    }

    &:user-valid {
      /* Valid input UI styles */
    }
  }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions