Skip to content

Commit

Permalink
Update Legacy Widget toolbar button font to match UI when displayed i…
Browse files Browse the repository at this point in the history
…n Widget Screen (#26841)

* Fixes #26213. Updates the block toolbar button font to match ui.

* Removed padding.
  • Loading branch information
mapk authored Nov 10, 2020
1 parent 2d529f5 commit 5b6213c
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
.edit-widgets-block-editor {
position: relative;

// The button element easily inherits styles that are meant for the editor style.
// These rules enhance the specificity to reduce that inheritance.
// This is copied from edit-post/src/components/style.scss but without the padding.
& .components-button {
font-family: $default-font;
font-size: $default-font-size;

&.is-tertiary,
&.has-icon {
padding: 6px;
}
}
}

0 comments on commit 5b6213c

Please sign in to comment.