From 7613028eb37d4eb34cbfdcbcb7361b5ab16d0996 Mon Sep 17 00:00:00 2001 From: Andrei Draganescu Date: Tue, 21 Apr 2020 16:16:52 +0300 Subject: [PATCH] add align class to pull quote in editor --- packages/block-library/src/pullquote/edit.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/block-library/src/pullquote/edit.js b/packages/block-library/src/pullquote/edit.js index 5a7dae5a5f845..887c7e4825607 100644 --- a/packages/block-library/src/pullquote/edit.js +++ b/packages/block-library/src/pullquote/edit.js @@ -105,7 +105,7 @@ class PullQuoteEdit extends Component { className, } = this.props; - const { value, citation } = attributes; + const { value, citation, align } = attributes; const isSolidColorStyle = includes( className, SOLID_COLOR_CLASS ); const figureStyles = isSolidColorStyle @@ -115,6 +115,7 @@ class PullQuoteEdit extends Component { const figureClasses = classnames( className, { 'has-background': isSolidColorStyle && mainColor.color, [ mainColor.class ]: isSolidColorStyle && mainColor.class, + [ `align${ align }` ]: align, } ); const blockquoteStyles = {