For more information, see this article: WPForms submit button match Gutenberg button style
/**
* WPForms submit button, match Gutenberg button block
* @link https://www.billerickson.net/code/wpforms-submit-button-match-gutenberg-block/
*/
function be_wpforms_match_button_block( $form_data ) {
$form_data['settings']['submit_class'] .= ' wp-block-button__link';
return $form_data;
}
add_filter( 'wpforms_frontend_form_data', 'be_wpforms_match_button_block' );