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

🐛🖍 Fix form validation error default display from inline to none #13580

Merged
merged 1 commit into from
Feb 21, 2018

Conversation

tomayac
Copy link
Contributor

@tomayac tomayac commented Feb 21, 2018

Form validation error messages wrapped in span[visible-when-invalid] are shown by default, this commit corrects that, and thereby attempts to fix #13576.

Closes #13576

Form validation error messages wrapped in `span[visible-when-invalid]` are shown by default, this commit corrects that, and thereby fixes ampproject#13576.
/**
* Form validation error messages should be hidden at first.
*/
span[visible-when-invalid] {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't believe there is a requirement on span, just [visible-when-invalid] should do.

@aghassemi
Copy link
Contributor

Good find and thanks for the fix. @cvializ for approval.

Copy link
Contributor

@cvializ cvializ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cvializ cvializ merged commit 2d7e578 into ampproject:master Feb 21, 2018
@tomayac tomayac deleted the patch-3 branch February 22, 2018 06:07
RanAbram pushed a commit to RanAbram/amphtml that referenced this pull request Mar 12, 2018
Form validation error messages wrapped in `span[visible-when-invalid]` are shown by default, this commit corrects that, and thereby fixes ampproject#13576.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

amp-form invalidation messages shown immediately
4 participants