Skip to content

Commit ed9879d

Browse files
committed
Sidebar container block: Allow themes to override top margin
Reduce specificity of selector so that settings in the theme.json can override. Fixes an issue with the top position of the ToC in Developer Resources.
1 parent 784a6a9 commit ed9879d

File tree

1 file changed

+1
-1
lines changed
  • mu-plugins/blocks/sidebar-container/postcss

1 file changed

+1
-1
lines changed

mu-plugins/blocks/sidebar-container/postcss/style.pcss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,6 @@ main .wp-block-wporg-sidebar-container {
102102
}
103103

104104
/* Set up the custom properties. These can be overridden by settings in theme.json. */
105-
:where(body) {
105+
:where(html) {
106106
--wp--custom--wporg-sidebar-container--spacing--margin--top: var(--wp--preset--spacing--edge-space);
107107
}

0 commit comments

Comments
 (0)