Skip to content

Commit

Permalink
Update theme styles for the code block (#36282)
Browse files Browse the repository at this point in the history
The theme.json settings for the code block target `.wp-block-code > code` not `.wp-block-code`. Therefore, there is no way to override the theme.css styles using theme.json. This update resolved that.
  • Loading branch information
ndiego authored and noisysocks committed Nov 22, 2021
1 parent b697aa0 commit c807dd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/code/theme.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.wp-block-code {
.wp-block-code > code {
font-family: $editor-html-font;
color: $gray-900;
padding: 0.8em 1em;
Expand Down

0 comments on commit c807dd3

Please sign in to comment.