diff --git a/docs/reference-guides/core-blocks.md b/docs/reference-guides/core-blocks.md index b9cae44550181c..e64ebb5702769f 100644 --- a/docs/reference-guides/core-blocks.md +++ b/docs/reference-guides/core-blocks.md @@ -865,7 +865,7 @@ Display an icon linking to a social profile or site. ([Source](https://github.co - **Name:** core/social-link - **Category:** widgets - **Parent:** core/social-links -- **Supports:** interactivity (clientNavigation), ~~html~~, ~~reusable~~ +- **Supports:** interactivity (clientNavigation), spacing (margin, padding, units), ~~html~~, ~~reusable~~ - **Attributes:** label, rel, service, url ## Social Icons diff --git a/packages/block-library/src/social-link/block.json b/packages/block-library/src/social-link/block.json index 37e8376f22ff09..d7e4ae9e191db7 100644 --- a/packages/block-library/src/social-link/block.json +++ b/packages/block-library/src/social-link/block.json @@ -34,6 +34,20 @@ "html": false, "interactivity": { "clientNavigation": true + }, + "spacing": { + "margin": true, + "padding": true, + "__experimentalDefaultControls": { + "margin": false, + "padding": false + } + }, + "__experimentalBorder": { + "radius": true, + "color": true, + "width": true, + "style": true } }, "editorStyle": "wp-block-social-link-editor" diff --git a/packages/block-library/src/social-links/style.scss b/packages/block-library/src/social-links/style.scss index 955c0434feea22..f1095cb5a4673c 100644 --- a/packages/block-library/src/social-links/style.scss +++ b/packages/block-library/src/social-links/style.scss @@ -91,8 +91,6 @@ // This needs specificity because themes usually override it with things like .widget-area a. .wp-block-social-links .wp-block-social-link.wp-social-link { display: inline-block; - margin: 0; - padding: 0; .wp-block-social-link-anchor { &,