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 committed Nov 12, 2021
1 parent af21db1 commit f2cbf5f
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 f2cbf5f

Please sign in to comment.