Skip to content

Commit

Permalink
Merge pull request #2440 from Codeinwp/bugfix/2429
Browse files Browse the repository at this point in the history
Added whitespace support to form's submit button
  • Loading branch information
vytisbulkevicius authored Nov 12, 2024
2 parents 27652cc + 1fcb503 commit 7ddf7f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/blocks/blocks/form/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -1052,9 +1052,8 @@ const Edit = ({
submitLabel = submitLabel.replace( /<br\s*\/?>/gi, ' ' );
setAttributes({ submitLabel });
} }
multiline={ false }
multiple={ false }
tagName="button"
tagName="span"
type='submit'
onClick={ e => e.preventDefault() }
/>
Expand Down
1 change: 1 addition & 0 deletions src/blocks/blocks/form/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
border: 0px;
transition: background-color 0.15s linear;
max-width: max-content;
white-space: normal !important;

@media ( min-width:640px ) and ( max-width: 1024px ) {
padding: var(--btn-pad-tablet);
Expand Down

0 comments on commit 7ddf7f6

Please sign in to comment.