Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Theme.json styles not overriding core inline block styles #65329

Open
2 tasks done
WilliamLeeks opened this issue Sep 13, 2024 · 1 comment
Open
2 tasks done

Theme.json styles not overriding core inline block styles #65329

WilliamLeeks opened this issue Sep 13, 2024 · 1 comment
Labels
[Type] Bug An existing feature does not function as intended

Comments

@WilliamLeeks
Copy link

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 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

  1. Install WP 6.6.2.
  2. Add core/pullquote to page.
  3. Use twentytwentyfour theme.
  4. Add the following to the cite element under core/pullquote in theme.json styles:
"color": {
    "text": "red"
}
  1. Refresh the page. The cite will still use inherit for its color value, as defined in core styles.

Screenshots, screen recording, code snippet

image

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
@Rishit30G
Copy link
Contributor

Rishit30G commented Jan 27, 2025

Thanks for sharing the issue,
Curious to know if this issue still persists, as I cannot see the color: inherit in the wp-block-quote>cite

WordPress: 6.7.1
Gutenberg: 20.1.0
Theme: TT4

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

2 participants