Quote block: Border added through theme.json removed on alternate styles #37670
Labels
[Block] Quote
Affects the Quote Block
[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
[Type] Bug
An existing feature does not function as intended
In my custom theme, I've added a border to the quote block in theme.json. It works fine with the default style, but if "Plain" or "Large" is selected, it creates a difference between frontend & editor. The border exists in the editor, but disappears on the frontend. Since I intentionally added a border in theme.json, I expect it to be there on all quote styles.
This also happens if the quote has text alignment = center, but I noticed that after taking my screenshots :)
Snippet from
theme.json
In the editor, the theme.json rendered styles win, but on the frontend, the quote block's theme.css styles win.
Note that this is technically happening in Twenty Twenty-Two, but since the
theme.json
there only defines a width, theborder: none
means it's trying to render a 1px "none" border in the editor, so the editor & frontend appear to match.Might be related to #35740?
Screenshots from Gutenberg 12.2.0 on WP 5.9-beta4-52422.
The text was updated successfully, but these errors were encountered: