Skip to content

Commit

Permalink
Social Icons: Add missing padding support, update margin support (#43885
Browse files Browse the repository at this point in the history
)
  • Loading branch information
andrewserong authored Sep 7, 2022
1 parent ac872b8 commit ccc0d51
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/reference-guides/core-blocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ Display icons linking to your social media profiles or sites. ([Source](https://

- **Name:** core/social-links
- **Category:** widgets
- **Supports:** align (center, left, right), anchor, color (background, gradients, ~~enableContrastChecker~~, ~~text~~), spacing (blockGap, margin, units)
- **Supports:** align (center, left, right), anchor, color (background, gradients, ~~enableContrastChecker~~, ~~text~~), spacing (blockGap, margin, padding, units)
- **Attributes:** customIconBackgroundColor, customIconColor, iconBackgroundColor, iconBackgroundColorValue, iconColor, iconColorValue, openInNewTab, showLabels, size

## Spacer
Expand Down
3 changes: 2 additions & 1 deletion packages/block-library/src/social-links/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@
},
"spacing": {
"blockGap": [ "horizontal", "vertical" ],
"margin": [ "top", "bottom" ],
"margin": true,
"padding": true,
"units": [ "px", "em", "rem", "vh", "vw" ],
"__experimentalDefaultControls": {
"blockGap": true
Expand Down
3 changes: 3 additions & 0 deletions packages/block-library/src/social-links/style.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
.wp-block-social-links {
// This block has customizable padding, border-box makes that more predictable.
box-sizing: border-box;

padding-left: 0;
padding-right: 0;
// Some themes set text-indent on all <ul>
Expand Down

0 comments on commit ccc0d51

Please sign in to comment.