Skip to content

Commit

Permalink
Social Links Block: Prevent Theme Styles Distorting Size (#56301)
Browse files Browse the repository at this point in the history
* Social Links Block: Prevent Theme Styles Distorting Size

* Remove :after selector

* Fix #53077
  • Loading branch information
Aurorum authored Dec 4, 2023
1 parent a2b7ac2 commit c516601
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions packages/block-library/src/social-links/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,20 @@
}

// This needs specificity because themes usually override it with things like .widget-area a.
.wp-block-social-links .wp-block-social-link .wp-block-social-link-anchor {
&,
&:hover,
&:active,
&:visited,
svg {
color: currentColor;
fill: currentColor;
.wp-block-social-links .wp-block-social-link.wp-social-link {
display: inline-block;
margin: 0;
padding: 0;

.wp-block-social-link-anchor {
&,
&:hover,
&:active,
&:visited,
svg {
color: currentColor;
fill: currentColor;
}
}
}

Expand Down

0 comments on commit c516601

Please sign in to comment.