[wp-trac] [WordPress Trac] #63404: Incorrect endValue for font weights
WordPress Trac
noreply at wordpress.org
Wed May 7 05:10:07 UTC 2025
#63404: Incorrect endValue for font weights
--------------------------+-----------------------------
Reporter: greenskin43 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: 6.8
Severity: major | Keywords:
Focuses: |
--------------------------+-----------------------------
The theme.json documentation for [[https://developer.wordpress.org/themes
/global-settings-and-styles/settings/typography/#registering-web-fonts-
font-faces|Typography font faces]] states a range of CSS `font-weight`
values can be used. However the editor logic that builds the options for
the font weight appearance control uses the 2nd value from the list as the
`endValue`. See `getFontStylesAndWeights()` in wp-includes/js/dist/block-
editor.js:
{{{
let [startValue, endValue] = face.fontWeight.split(' ');
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63404>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list