Skip to content

Commit

Permalink
Add config for block preset classes
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronrobertshaw committed Oct 14, 2020
1 parent 8e56b84 commit 2809cb4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/global-styles.php
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,11 @@ function gutenberg_experimental_global_styles_get_preset_classes( $selector, $se
'key' => 'size',
'property' => 'font-size',
),
'font-style' => array(
'path' => array( 'typography', 'fontStyles' ),
'key' => 'slug',
'property' => 'font-style',
),
);

foreach ( $classes_structure as $class_suffix => $preset_structure ) {
Expand Down

0 comments on commit 2809cb4

Please sign in to comment.