Skip to content

Commit

Permalink
Ignore social links block in reset style selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw committed May 13, 2024
1 parent 2296fc5 commit 38dbc1a
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions packages/block-library/src/reset.scss
Original file line number Diff line number Diff line change
Expand Up @@ -56,20 +56,24 @@
margin: revert;
}

ul,
ol {
// These resets ignore the social links block without increasing
// specificity as the block library styles include their own reset. This
// allows the block to have zero specificity styles and remain compatible
// with global styles for block themes.
ul:where(:not([class*="wp-block"])),
ol:where(:not([class*="wp-block"])) {
margin: revert;
padding: revert;
list-style-type: revert;
box-sizing: border-box;

// Remove bottom margin from nested lists.
ul,
ol {
ul:where(:not([class*="wp-block"])),
ol:where(:not([class*="wp-block"])) {
margin: revert;
}

li {
li:where(:not([class*="wp-block"])) {
margin: revert;
}
}
Expand Down

0 comments on commit 38dbc1a

Please sign in to comment.