Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue where default appender has icons overlaying the text #12536

Merged
merged 2 commits into from
Dec 9, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
}
}