Skip to content

Commit

Permalink
Comment Edit Link: Add Border Block Support (#64239)
Browse files Browse the repository at this point in the history
* Add Border Support

* Hide Default Spacing & Border Control default 

Co-authored-by: shail-mehta <shailu25@git.wordpress.org>
Co-authored-by: aaronrobertshaw <aaronrobertshaw@git.wordpress.org>
Co-authored-by: ramonjd <ramonopoly@git.wordpress.org>
  • Loading branch information
4 people authored Sep 3, 2024
1 parent ebabad6 commit e2d5864
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
15 changes: 13 additions & 2 deletions packages/block-library/src/comment-edit-link/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@
},
"spacing": {
"margin": true,
"padding": true
"padding": true,
"__experimentalDefaultControls": {
"margin": false,
"padding": false
}
},
"typography": {
"fontSize": true,
Expand All @@ -47,6 +51,13 @@
},
"interactivity": {
"clientNavigation": true
},
"__experimentalBorder": {
"radius": true,
"color": true,
"width": true,
"style": true
}
}
},
"style": "wp-block-comment-edit-link"
}
4 changes: 4 additions & 0 deletions packages/block-library/src/comment-edit-link/style.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.wp-block-comment-edit-link {
// This block has customizable padding, border-box makes that more predictable.
box-sizing: border-box;
}
1 change: 1 addition & 0 deletions packages/block-library/src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
@import "./comment-date/style.scss";
@import "./comment-content/style.scss";
@import "./comment-author-name/style.scss";
@import "./comment-edit-link/style.scss";
@import "./cover/style.scss";
@import "./details/style.scss";
@import "./embed/style.scss";
Expand Down

1 comment on commit e2d5864

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in e2d5864.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/10686235925
📝 Reported issues:

Please sign in to comment.