Allow themes to specify default font weight for headings. #22641
Labels
[Block] Heading
Affects the Headings Block
[Feature] Custom Editor Styles
Functionality for adding custom editor styles
[Feature] Themes
Questions or issues with incorporating or styling blocks in a theme.
Global Styles
Anything related to the broader Global Styles efforts, including Styles Engine and theme.json
Currently, when using Gutenberg's default editor styles, the "Bold" option for the Header block has no effect:
This is because the heading is already bold by default.
A similar issue exists in Twenty Nineteen and Twenty Twenty too — they both use bold headings by default. They both have it so that when you select "Bold", the themes swap the default 700 weight for a 600 weight (effectively making the text less bold when bold is turned on).
Bold headings are a super-common pattern (it's even the browser default), so it would be excellent if Gutenberg could be smarter about this. Would it be possible to:
The resolution to this may be just to wait for Global Styles, but I wanted to highlight this specifically, since it's come up in many themes.
The text was updated successfully, but these errors were encountered: