Skip to content

Missing Tailwind allowed character in htmlClass pattern #38235

Open
@aurmil

Description

@aurmil

Summary

discussed in #32004 and #34430

improved in #36452 and #34559

but not complete yet

Tailwind allows custom styles (see docs here https://tailwindcss.com/docs/adding-custom-styles ) such as this sample HTML class: text-[20%] but % is not allowed

Examples

use text-[20%] in htmlClass attribute of a container element

Proposed solution

add % in allowed characters for htmlClassType pattern in lib/internal/Magento/Framework/View/Layout/etc/elements.xsd

Release note

Allow % in htmlClass allowed characters

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: UI FrameworkComponent: CssIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: ready for devReported on 2.4.xIndicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchTriage: Dev.ExperienceIssue related to Developer Experience and needs help with Triage to Confirm or Reject it

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions