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

Widget documentation for pattern option is formatted incorrectly #5915

Closed
lfracalossiFA opened this issue Oct 21, 2021 · 0 comments · Fixed by #5954
Closed

Widget documentation for pattern option is formatted incorrectly #5915

lfracalossiFA opened this issue Oct 21, 2021 · 0 comments · Fixed by #5954
Labels
area: docs good first issue type: bug code to address defects in shipped code

Comments

@lfracalossiFA
Copy link

Describe the bug
In the widget documentation, the pattern option's sample code is appearing all on one line and thus getting cut off by the container boundaries.

This means the sample regex pattern and the form validation error text aren't visible, making it difficult to figure out the syntax.

To Reproduce

  1. Go to the widget docs page
  2. Scroll down to 'Common Widget Options" -> pattern
  3. See the example code block beneath it.

Expected behavior
For the code sample to be formatted in a readable way so that I can understand the syntax.

Screenshots
Screen Shot 2021-10-20 at 10 00 14 AM

Applicable Versions:

  • OS: Mac OS 11.6 (Big Sur)
  • Browser version: Chrome 95.0.4638.54

Additional context
Entering bug pursuant to conversation with @erezrokah on NetlifyCMS Slack.
https://netlifycms.slack.com/archives/CPMJH823F/p1634738865063000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: docs good first issue type: bug code to address defects in shipped code
Projects
None yet
2 participants