Skip to content

Commit

Permalink
WP.com Block Editor: Add front-end styles for text justify. (#36401)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwight authored Sep 30, 2019
1 parent 5b12ef3 commit fbf7da7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/wpcom-block-editor/src/common/rich-text.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable import/no-extraneous-dependencies */
/* global wpcomGutenberg */

/**
Expand Down Expand Up @@ -78,6 +79,5 @@ registerFormatType( 'wpcom/justify', {
title: wpcomGutenberg.richTextToolbar.justify,
tagName: 'p',
className: null,
attributes: { style: 'style' },
edit: ConnectedRichTextJustifyButton,
} );
4 changes: 4 additions & 0 deletions apps/wpcom-block-editor/src/common/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,7 @@
.components-notice-list {
z-index: 29; // Ensure notices are placed behind the editor header (z-index: 30).
}

.has-text-align-justify {
text-align: justify;
}

0 comments on commit fbf7da7

Please sign in to comment.