Description
Quick summary
When the Place button on new line
option is enabled the submit button is not displaying at the expected width.
Steps to reproduce
- Add a Subscribe Block.
- Enable the
Place button on new line
setting. - Ensure the width is set to 100%.
What you expected to happen
For the submit (Subscribe) button to display at 100%
What actually happened
The button in the editor displays as expected.
The button on the live site displays at the set width, less the value set for Space Between
. This is especially obvious when the button should be 100%.
Editor | Live Site |
---|---|
![]() |
![]() |
The issue occurs on WPcom and Jetpack sites.
Impact
All
Available workarounds?
No but the platform is still usable
Platform (Simple and/or Atomic)
Simple, Atomic, Self-hosted
Logs or notes
Some testing reveals that the width of the button is always the set width (in this case 100%), less the value set in the Space Between
setting:
We're subtracting that value to account for custom margins on inline forms:
which makes sense for when the two are on the same line, but we should not subtract that space when the buttons are not on the same line.