Skip to content

Commit

Permalink
fixes #977
Browse files Browse the repository at this point in the history
  • Loading branch information
Rahul Verma committed May 24, 2016
1 parent 556c23d commit 2e6a66b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions includes/output/field/class-kirki-output-field-typography.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,8 @@ protected function process_output( $output, $value ) {
// Is this italic?
$is_italic = ( false !== strpos( $value['variant'], 'italic' ) );
$this->styles[ $output['media_query'] ][ $output['element'] ]['font-weight'] = $font_weight;
if ( $is_italic ) {
$this->styles[ $output['media_query'] ][ $output['element'] ]['font-style'] = 'italic';
}
$font_style = $is_italic ? 'italic' : 'normal' ;
$this->styles[ $output['media_query'] ][ $output['element'] ]['font-style'] = $font_style;
}

// Take care of font-size.
Expand Down

0 comments on commit 2e6a66b

Please sign in to comment.