-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Gutenberg plugin: Override core classic theme styles #73580
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
Conversation
6115296 to
548c4f6
Compare
548c4f6 to
dde0c1d
Compare
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
Flaky tests detected in dde0c1d. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/19701969594
|
aaronrobertshaw
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix @t-hamano 👍
LGTM
✅ Classic style overrides appear in the editor
✅ Same overrides appear on the frontend
Tested with TwentyTwenty theme and this small tweak:
.wp-block-post-content,
.entry-content {
background: darkseagreen;
}Frontend:
|
@aaronrobertshaw Thanks for the review! P.S. We are aiming to adjust the CSS for the Accordion Heading block in the point release 6.9.1. This PR is not directly related to the 6.9 release, but I'd like to add the |

Found while investigating the approach suggested in #73454 (comment)
What?
There is a style called
classic-theme-stylesthat is only enqueued when the classic theme is active. I found that the Gutenberg plugin was missing the code to override this. This PR overrides this core style so that the Gutenberg plugin can test styles for the new classic theme.Testing Instructions
packages/block-library/src/classic.scssand add some changesScreenshots or screencast