Skip to content

Commit

Permalink
Archive Block: Prevent spacing styles and additional CSS classes from…
Browse files Browse the repository at this point in the history
… being printed twice (#44438)

* Archive Block: Prevent block support styles and additional CSS classes from being printed twice

* Fix Typo

Co-authored-by: Aaron Robertshaw <60436221+aaronrobertshaw@users.noreply.github.com>

* Fix Typo

Co-authored-by: Aaron Robertshaw <60436221+aaronrobertshaw@users.noreply.github.com>

* Use new  option

Co-authored-by: Aaron Robertshaw <60436221+aaronrobertshaw@users.noreply.github.com>
  • Loading branch information
t-hamano and aaronrobertshaw committed Oct 10, 2022
1 parent 401be48 commit 6a2d304
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/block-library/src/archives/edit.js
Expand Up @@ -66,6 +66,7 @@ export default function ArchivesEdit( { attributes, setAttributes } ) {
<Disabled>
<ServerSideRender
block="core/archives"
skipBlockSupportAttributes
attributes={ attributes }
/>
</Disabled>
Expand Down
5 changes: 5 additions & 0 deletions packages/block-library/src/archives/style.scss
@@ -1,3 +1,8 @@
.wp-block-archives {
// This block has customizable padding, border-box makes that more predictable.
box-sizing: border-box;
}

.wp-block-archives-dropdown {
label {
display: block;
Expand Down

0 comments on commit 6a2d304

Please sign in to comment.