Skip to content

Commit

Permalink
Fix issue where default appender has icons overlaying the text (#12536)
Browse files Browse the repository at this point in the history
* Fix issue where default appender has icons overlaying the text

This fixes #11425.

It adds padding to the right of the default block appender to fit 3 icons.

* chore: Tweak spelling
  • Loading branch information
jasmussen authored and youknowriad committed Dec 9, 2018
1 parent a12fcec commit 42bf375
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/block-library/src/paragraph/editor.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
// Specific to the empty paragraph placeholder:
// when shown on mobile and in nested contexts, the plus to add blocks shows up on the right.
// when shown on mobile and in nested contexts, one or more icons show up on the right.
// This padding makes sure it doesn't overlap text.
.editor-rich-text__tinymce[data-is-placeholder-visible="true"] + .editor-rich-text__tinymce.wp-block-paragraph {
padding-right: $icon-button-size;
padding-right: $icon-button-size * 3;

// In nested contexts only one icon shows up.
.wp-block .wp-block & {
padding-right: $icon-button-size;
}
}

0 comments on commit 42bf375

Please sign in to comment.