Skip to content

Commit

Permalink
fix(ras-acc): apply wp-block-button class to checkout buttons (#1887)
Browse files Browse the repository at this point in the history
This PR fixes an issue where checkout button blocks were losing the wp-block-button class when upgrading to epic/ras-acc.
  • Loading branch information
chickenn00dle committed Sep 19, 2024
1 parent f5f744e commit d136a62
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/blocks/checkout-button/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ function render_callback( $attributes ) {
'checkout-button',
$attributes,
[
'wp-block-button',
( $font_size || isset( $style['typography']['fontSize'] ) ) ? 'has-custom-font-size' : '',
$width ? ' has-custom-width wp-block-button__width-' . esc_attr( $width ) : '',
]
Expand Down

0 comments on commit d136a62

Please sign in to comment.