Skip to content

Commit

Permalink
Add whitespace support to form's submit button
Browse files Browse the repository at this point in the history
  • Loading branch information
girishpanchal30 committed Nov 11, 2024
1 parent 116a035 commit 1fcb503
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 @@ -1044,9 +1044,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 1fcb503

Please sign in to comment.