Skip to content

Commit

Permalink
Font-family: fix typo in supports for dynamic blocks (#31974)
Browse files Browse the repository at this point in the history
  • Loading branch information
nosolosw authored May 19, 2021
1 parent 524df51 commit 9264b9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/block-supports/typography.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ function gutenberg_apply_typography_support( $block_type, $block_attributes ) {
$font_family_name = substr( $font_family, $index_to_splice );
$styles[] = sprintf( 'font-family: var(--wp--preset--font-family--%s);', $font_family_name );
} else {
$styles[] = sprintf( 'font-family: %s;', $block_attributes['style']['color']['fontFamily'] );
$styles[] = sprintf( 'font-family: %s;', $block_attributes['style']['typography']['fontFamily'] );
}
}
}
Expand Down

0 comments on commit 9264b9a

Please sign in to comment.