Skip to content

Commit

Permalink
Removed paragraph colors from save logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgefilipecosta committed Dec 6, 2017
1 parent 14fa020 commit 48771ef
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions blocks/library/paragraph/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,15 +265,13 @@ registerBlockType( 'core/paragraph', {
edit: ParagraphBlock,

save( { attributes } ) {
const { width, align, content, dropCap, backgroundColor, textColor, fontSize } = attributes;
const { width, align, content, dropCap, backgroundColor, fontSize } = attributes;
const className = classnames( {
[ `align${ width }` ]: width,
'has-background': backgroundColor,
'has-drop-cap': dropCap,
} );
const styles = {
backgroundColor: backgroundColor,
color: textColor,
fontSize: fontSize,
textAlign: align,
};
Expand Down

0 comments on commit 48771ef

Please sign in to comment.