Skip to content

Commit

Permalink
Merge pull request #2079 from pattonwebz/update/cover-text-style-fix
Browse files Browse the repository at this point in the history
Replace inline style of `textColor` with `color` in cover-text block.
  • Loading branch information
aduth authored Jul 28, 2017
2 parents 091aba8 + 831a71c commit b6c3a4f
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 b6c3a4f

Please sign in to comment.