Skip to content

Form block: Prevent submit button from getting larger when an error appears #40753

@jp-imagines

Description

@jp-imagines

Impacted plugin

Jetpack

Quick summary

If you submit a form without filling out all of the required fields, an error appears. At the same time, the submit button (a sibling element of the error) grows in size.

Steps to reproduce

  1. Add a Form block to a page.
  2. Ensure at least one field is set as "required."
  3. View the live page.
  4. Without filling out the required field, submit the form.

A clear and concise description of what you expected to happen.

The error should appear and the submit button should not change in size.

What actually happened

The submit button has a 100% height value, which causes it to become significantly larger when the error appears:

Screen.Capture.on.2024-12-27.at.14-26-08.mp4

Impact

Some (< 50%)

Available workarounds?

No but the platform is still usable

If the above answer is "Yes...", outline the workaround.

No response

Platform (Simple and/or Atomic)

Atomic

Logs or notes

Only tested/replicated on Atomic so far. Replicated on several themes, including a classic theme (Twenty Twenty) and block themes. Initial customer report in 9216021-zd-a8c.

Metadata

Metadata

Assignees

Labels

BugWhen a feature is broken and / or not performing as intendedCustomer Report [LEGACY]Issues or PRs that were reported via Happiness. aka "Happiness Request", or "User Report"Triaged[Block] FormForm block (also see Form package label)[Feature] Forms[Feature] Forms BlocksBlocks designed to streamline user input and engagement, such as contact, newsletter sign-ups, etc.[Platform] Atomic[Plugin] JetpackIssues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/[Pri] Normal[Status] Escalated to Product Ambassadors[Status] Priority Review TriggeredThe guild in charge of triage has been notified of this issue in Slack

Type

No fields configured for Bug.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions