Hi everyone! Here’s the seventh weekly roundup of theme-related discussions, fixes, and developments in Gutenberg.
Since conversations are ongoing, some of the issues & PRs mentioned were also present in previous weeks. We’ve tried to put brand new ones at the top of each of the bulleted lists.
Please weigh in on the tickets below — your voice and feedback are welcome!
In progress / Discussions:
General
Hexadecimal colors in gradient presets break the block preview. 23361
Discussion around adding font unit options to the font size selector. 23323
Button Block: Lighten the DOM in the editor. 23222
Limit display of block patterns if their included blocks are not available. 23275
PR to adjust max-width setting for reusable blocks. 22632
PR for adding color controls to the list block. 21387
PR to change CSS specificity of default font-size rules. 22671
Fixes for the issue where custom theme colors don’t work in the editor after Gutenberg 7.9.1. 22356
Add a way to filter CSS classes for blocks using PHP23223
Block-based Themes
Consider renaming experimental-theme.json documentation to “Global Styles” 23307
Discussing the use of conditional logic in experimental-theme.json22324
Issue where HTML file updates are not being reflected in the full site editor. 23106
Tracking issue for Template Tags in Full Site Editing 22724
Cover Blocks experimental padding control. To enable this, themes need to declare add_theme_support( 'experimental-custom-spacing' ) to see the new controls. Documentation is forthcoming for the Theme Developer Handbook.
Control link color in the paragraph, heading, group, columns, and media & text blocks. This can potentially override a theme’s hover state, so theme developers may need to find a workaround. This enhancement sets the stage for theme.json to eventually handle link styles. Themes can opt-in by declaring add_theme_support( 'experimental-link-color' ) and get the following additional controls:
Also merged in 8.3 a FSE bug fix solving an issue that occurred when the theme supplied an index.html but no front-page.html, causing the site editor to appear blank. It also creates an index.html so that if the theme has no fallback template.
@aristath’s related utility code in the Theme Experiments repo helps with the opposite side of this problem — installing an experimental FSE theme that doesn’t have Gutenberg installed.
In progress theme-based Gutenberg PRs and Issues
On the global styles / theme.json front, there is an issue that asks if theme presets be expanded to line-height, padding, and margin. Subsequent PRs trying out implementing presets for line-height and padding include PR 23177 and PR 23176. There is discussion around whether these presets should be added via add_theme_support (as they were for link color) or if working via theme.json is all that is needed.
This led to a discussion of the proposed hierarchy/relationship between theme.json and add_theme_support. @richtabor foresees theme.json being the owner of the vast majority of these sorts of design defaults, with add_theme_support as the “in-between” for now, or the logic-based overrides of theme.json. @kjellr, @poena, @aristath disagreed saying experimental-themes.json provided more flexibility for a clean start in FSE so long as it supports the logic provided currently by add_theme_support. An issue is now open in GitHub for wider discussion.
Open Floor
@prtksxna asked if themes should register block styles for full-site blocks like site-title or post-title. @acosmin pointed out theme authors can register any block styles but can’t register blocks in themes at the present time.
Hi everyone! Here’s the sixth weekly roundup of theme-related discussions, fixes, and developments in Gutenberg.
Since conversations are ongoing, some of the issues & PRs mentioned were also present in previous weeks. We’ve tried to put brand new ones at the top of each of the bulleted lists.
Please weigh in on the tickets below — your voice and feedback are welcome!
In progress / Discussions:
General
Button Block: Legacy buttons don’t appear center-aligned by default 23291