CSS class validation too strict

Created on 13 April 2021, about 3 years ago
Updated 8 April 2024, 3 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.69.0 2024