Skip to content

Commit

Permalink
Sidebar container block: Allow themes to override top margin
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
adamwoodnz committed May 6, 2024
1 parent 784a6a9 commit ed9879d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mu-plugins/blocks/sidebar-container/postcss/style.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,6 @@ main .wp-block-wporg-sidebar-container {
}

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

0 comments on commit ed9879d

Please sign in to comment.