diff --git a/mu-plugins/blocks/modal/render.php b/mu-plugins/blocks/modal/render.php index cfd992cc..52d04e85 100644 --- a/mu-plugins/blocks/modal/render.php +++ b/mu-plugins/blocks/modal/render.php @@ -13,6 +13,11 @@ $style .= get_style_decl_from_attr( $attributes, 'overlayColor' ); $style .= get_style_decl_from_attr( $attributes, 'closeButtonColor' ); +$button_class = 'wp-block-button'; +if ( ! empty( $attributes['buttonStyle'] ) ) { + $button_class .= ' is-style-' . $attributes['buttonStyle']; +} + // Initial state to pass to Interactivity API. $init_state = [ 'isOpen' => false, @@ -31,7 +36,7 @@ >