Skip to content

Commit

Permalink
Fix line-height in block card. (#58246)
Browse files Browse the repository at this point in the history
* Fix line-height in block card.

* Fix for site editor.
  • Loading branch information
jasmussen committed Jan 25, 2024
1 parent 577a71f commit 0766cb3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/block-editor/src/components/block-card/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,16 @@

&.block-editor-block-card__title {
font-size: $default-font-size;
line-height: $button-size-small;
line-height: $default-line-height;
margin: 0;
padding: 3px 0; // This makes the title as high as the icon.
}
}

.block-editor-block-card__description {
display: block;
font-size: $default-font-size;
line-height: $default-line-height;
margin-top: $grid-unit-05;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
font-weight: 500;
line-height: $icon-size;
&.edit-site-sidebar-card__title {
font-size: $default-font-size;
line-height: $default-line-height;
margin: 0;
padding: 3px 0; // This makes the title as high as the icon.
}
}

Expand Down

0 comments on commit 0766cb3

Please sign in to comment.