Skip to content

Commit e3aa011

Browse files
committed
Twenty Nineteen: Fixes button block padding within the editor.
The button block padding was not the same in the editor and front. This resolves that issue with the font size having being resolved in a previous ticket. Props pitamdey, sabernhardt. Fixes #61235. git-svn-id: https://develop.svn.wordpress.org/trunk@58556 602fd350-edb4-49c9-b593-d223f7449a82
1 parent a4e5209 commit e3aa011

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/wp-content/themes/twentynineteen/style-editor.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -999,6 +999,7 @@ figcaption,
999999
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
10001000
font-size: 0.88889em;
10011001
font-weight: bold;
1002+
padding: 16.72px 22px;
10021003
}
10031004

10041005
.wp-block-button .wp-block-button__link:not(.has-text-color) {

src/wp-content/themes/twentynineteen/style-editor.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,7 @@ figcaption,
393393
@include font-family( $font__heading );
394394
font-size: $font__size-sm;
395395
font-weight: bold;
396+
padding: ($font__size_base * .76) $font__size_base;
396397

397398
&:not(.has-text-color) {
398399
color: #fff;

0 commit comments

Comments
 (0)