Skip to content

Commit

Permalink
Blocks: Revert the default fonti size changes for Paragraph (#6075)
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo authored Apr 9, 2018
1 parent 909d38d commit bf29d57
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions blocks/library/paragraph/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,6 @@ class ParagraphBlock extends Component {
if ( customFontSize ) {
return customFontSize;
}

return FONT_SIZES.regular;
}

setFontSize( fontSizeValue ) {
Expand Down Expand Up @@ -190,7 +188,7 @@ class ParagraphBlock extends Component {
<RangeControl
className="blocks-paragraph__custom-size-slider"
label={ __( 'Custom Size' ) }
value={ fontSize }
value={ fontSize || '' }
onChange={ ( value ) => this.setFontSize( value ) }
min={ 12 }
max={ 100 }
Expand Down Expand Up @@ -239,7 +237,7 @@ class ParagraphBlock extends Component {
style={ {
backgroundColor: backgroundColor,
color: textColor,
fontSize: fontSize !== FONT_SIZES.regular ? fontSize + 'px' : undefined,
fontSize: fontSize ? fontSize + 'px' : undefined,
textAlign: align,
} }
value={ content }
Expand Down

0 comments on commit bf29d57

Please sign in to comment.