[wp-trac] [WordPress Trac] #55602: theme.json custom variables with letter and number next to eachother gets converted to letter {dash} number in the css vars HTML output
WordPress Trac
noreply at wordpress.org
Thu Apr 21 15:58:35 UTC 2022
#55602: theme.json custom variables with letter and number next to eachother gets
converted to letter {dash} number in the css vars HTML output
------------------------------+-----------------------------
Reporter: cbaldelomar | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 5.9.3
Severity: normal | Keywords:
Focuses: coding-standards |
------------------------------+-----------------------------
In theme.json file, version 2, the following custom entry
{{{"heading-font-size-h1": "var(--cp-vars-heading-font-size-h1)",}}}
renders in an HTML document:
{{{--wp--custom--heading-font-size-h-1: var(--cp-vars-heading-font-
size-h1);}}}
This use to not be the case, and was a breaking change for plugins and
themes that use `h1` in their CSS vars instead of the changed `h-1`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55602>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list