Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Restrict tag processing to button and update submit styles
  • Loading branch information
lezama authored and CGastrell committed Nov 28, 2025
commit dfdbd59d22364f6c9ddd6fe4dd2f79c9f8228bcc
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public static function render_submit_button( $content, $parsed_block ) {
}

$p = new \WP_HTML_Tag_Processor( $content );
if ( ! $p->next_tag( array( 'tag_name' => array( 'button', 'a' ) ) ) ) {
if ( ! $p->next_tag( array( 'tag_name' => 'button' ) ) ) {
return $content;
}

Expand Down
1 change: 0 additions & 1 deletion projects/packages/forms/src/contact-form/css/grunion.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1308,7 +1308,6 @@ on production builds, the attributes are being reordered, causing side-effects
display: none;
}

.jetpack-form-submit-button.is-submitting .wp-block-button__link::after,
.jetpack-form-submit-button.is-submitting button::after {
content: "";
display: inline-block;
Expand Down