You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Styles added in theme.json are not overriding core block styles in some instances, especially when targeting nested elements. For instance, trying to colour the text of a cite within core/pullquote does not work when added to theme.json, due to the inline styles having higher specificity.
Step-by-step reproduction instructions
Install WP 6.6.2.
Add core/pullquote to page.
Use twentytwentyfour theme.
Add the following to the cite element under core/pullquote in theme.json styles:
"color": {
"text": "red"
}
Refresh the page. The cite will still use inherit for its color value, as defined in core styles.
Screenshots, screen recording, code snippet
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered:
Description
Styles added in
theme.json
are not overriding core block styles in some instances, especially when targeting nested elements. For instance, trying to colour the text of acite
withincore/pullquote
does not work when added totheme.json
, due to the inline styles having higher specificity.Step-by-step reproduction instructions
core/pullquote
to page.twentytwentyfour
theme.cite
element undercore/pullquote
intheme.json
styles:cite
will still useinherit
for itscolor
value, as defined in core styles.Screenshots, screen recording, code snippet
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
The text was updated successfully, but these errors were encountered: