Skip to content

Widget documentation for pattern option is formatted incorrectly #5915

Closed
@lfracalossiFA

Description

@lfracalossiFA

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions