Skip to content

Commit

Permalink
Merge pull request #1468 from swissspidy/update/drop-cap
Browse files Browse the repository at this point in the history
Fix undefined drop-cap class
  • Loading branch information
swissspidy authored Jun 27, 2017
2 parents f40484e + 306f201 commit 44f759a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions blocks/editable/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
}
}

.drop-cap-true .blocks-editable__tinymce:not( :focus ) {
.has-drop-cap .blocks-editable__tinymce:not( :focus ) {
&:first-letter {
float: left;
font-size: 4.1em;
Expand All @@ -69,7 +69,7 @@
}
}

.drop-cap-true:not( :focus ) {
.has-drop-cap:not( :focus ) {
overflow: hidden;
}

Expand Down
2 changes: 1 addition & 1 deletion blocks/library/text/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ registerBlockType( 'core/text', {
} }
onMerge={ mergeBlocks }
style={ { textAlign: align } }
className={ `drop-cap-${ dropCap }` }
className={ dropCap && 'has-drop-cap' }
placeholder={ __( 'Write…' ) }
/>,
];
Expand Down

0 comments on commit 44f759a

Please sign in to comment.