CSS class validation too strict

Created on 13 April 2021, over 3 years ago
Updated 8 April 2024, 8 months ago

Problem/Motivation

CSS classes added when configuring field groups are validated, using too narrow a set of allowed characters. Those of us using frameworks like https://tailwindcss.com/ often use characters that might be unusual, but totally valid. See 🐛 CSS class validation too strict Needs work for another example of this issue elsewhere.

Steps to reproduce

Create a HTML element field group, try using a colon in the class field. The error 'The css class must include only letters, numbers, underscores and dashes.' is shown.

Proposed resolution

Use a looser validation criteria.

Remaining tasks

Review patch.

User interface changes

None

API changes

None

Data model changes

None

🐛 Bug report
Status

Needs review

Version

3.0

Component

Code

Created by

🇬🇧United Kingdom james.williams

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024