Skip to content

Commit

Permalink
Remove image caption fix for WP before 6.6 (#514)
Browse files Browse the repository at this point in the history
  • Loading branch information
stian-overasen authored Jul 31, 2024
1 parent b769d0e commit 643dd25
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
9 changes: 0 additions & 9 deletions packages/themes/block-theme/src/blocks/core/image.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,3 @@
.wp-block-post-featured-image img {
display: block;
}

/* Reset styling for figcaption (Image block overrides caption styling from theme.json) */
.wp-block-image figcaption {
color: unset;
font-size: var(--wp--preset--font-size--small);
line-height: unset;
margin: unset;
text-align: unset;
}
6 changes: 6 additions & 0 deletions packages/themes/block-theme/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,12 @@
"typography": {
"fontSize": "var(--wp--preset--font-size--small)",
"lineHeight": "unset"
},
"spacing": {
"margin": {
"top": "0",
"bottom": "0"
}
}
}
},
Expand Down

0 comments on commit 643dd25

Please sign in to comment.