Skip to content

Commit

Permalink
Archives: Add border block support (WordPress#63400)
Browse files Browse the repository at this point in the history
Archives: Add border block support

Co-authored-by: carolinan <[email protected]>
Co-authored-by: aaronrobertshaw <[email protected]>
  • Loading branch information
3 people authored and karthick-murugan committed Nov 13, 2024
1 parent 3775272 commit e677c86
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/block-library/src/archives/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@
},
"supports": {
"align": true,
"__experimentalBorder": {
"radius": true,
"color": true,
"width": true,
"style": true
},
"html": false,
"spacing": {
"margin": true,
Expand Down
8 changes: 8 additions & 0 deletions packages/block-library/src/archives/editor.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
ul.wp-block-archives {
padding-left: 2.5em;
}

// The following styles are to prevent duplicate spacing and borders for the archives
// block in the editor given it uses server side rendering.
// See https://github.com/WordPress/gutenberg/pull/63400
.wp-block-archives .wp-block-archives {
margin: 0;
border: 0;
}

0 comments on commit e677c86

Please sign in to comment.