Skip to content

Commit

Permalink
Replace inline style of textColor with color in cover-text block.
Browse files Browse the repository at this point in the history
  • Loading branch information
pattonwebz committed Jul 28, 2017
1 parent f628c32 commit 831a71c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blocks/library/cover-text/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ registerBlockType( 'core/cover-text', {
const className = dropCap && 'has-drop-cap';

if ( ! align ) {
return <div style={ { backgroundColor: backgroundColor, textColor: textColor } }><p className={ className }>{ content }</p></div>;
return <div style={ { backgroundColor: backgroundColor, color: textColor } }><p className={ className }>{ content }</p></div>;
}

return <div style={ { backgroundColor: backgroundColor, textColor: textColor } }><p style={ { textAlign: align } } className={ className }>{ content }</p></div>;
return <div style={ { backgroundColor: backgroundColor, color: textColor } }><p style={ { textAlign: align } } className={ className }>{ content }</p></div>;
},
} );

0 comments on commit 831a71c

Please sign in to comment.