-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Pattern field validation with a long error message is hidden behind field label #1654
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I have done some work on the fields.
How about this design? Check the above link for the source. |
@erquhart Any comments? |
@tech4him1 I don't see anything like this in docs where we can set custom error message. |
@mittalyashu See the example code in the initial issue description: pattern: ['^.{50,300}$', "For best results in Google, we recommend 50-300 characters."] The phrase "For best results in Google, we recommend 50-300 characters." is used as the error message. |
That's I get it, what I am trying to say, is it in the NetlifyCMS docs? If it is not, then we can add it in the docs. |
Yes, just use the docs search: https://www.netlifycms.org/docs/widgets/#common-widget-options |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Describe the bug
When you create a
pattern
validation for a field and include a long error message, it flows to the width of the input field and gets hidden behind the input field label.To Reproduce
Steps to reproduce the behavior:
Expected behavior
The message does not get hidden and remains readable.
Screenshots
Applicable Versions:
CMS configuration
The text was updated successfully, but these errors were encountered: