Skip to content

Commit

Permalink
Fixed a bug in paragraph affecting cursor visibility when the block i…
Browse files Browse the repository at this point in the history
…s left/right aligned. (#5135)

Classes alignright and alignleft were being passed to paragraph RichText, these classes contain CSS that make the cursor invisible when the paragraph is empty making content writing impossible.
  • Loading branch information
jorgefilipecosta committed Feb 19, 2018
1 parent 206a9a2 commit e4148d0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion blocks/library/paragraph/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ class ParagraphBlock extends Component {
<RichText
tagName="p"
className={ classnames( 'wp-block-paragraph', className, {
[ `align${ width }` ]: width,
'has-background': backgroundColor,
} ) }
style={ {
Expand Down

0 comments on commit e4148d0

Please sign in to comment.