Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Abide): add validator-specific error messages #11698

Merged

Commits on Oct 8, 2019

  1. feat(abide): add validator-specific error messages

    Now you can add different error messages for each validator using the
    `[data-form-error-on]` attribute.
    
    <input required type="email">
    <span class="form-error" data-form-error-on="required">Required</span>
    <span class="form-error" data-form-error-on="pattern">Invalid</span>
    
    BREAKING CHANGE: `Foundation.Abide#validateText()` no longer checks if
    the input is required. Use the `Foundation.Abide#requiredCheck()` method
    for that.
    
    Closes foundation#10799
    soylent committed Oct 8, 2019
    Copy the full SHA
    5eac681 View commit details
    Browse the repository at this point in the history