Forms: the Below form style is unregistered and its editor CSS selector never matches
Maintainers usually reply within 1 day
@enejb is already working on this.
Since Aug 18, 2026.
Assessment
This issue has not been assessed yet.
Description
Summary
The "Below" form style is dead in two independent ways: it isn't registered as a block style, and the one CSS rule implementing it uses a selector that cannot match. Reviving it means fixing both.
1. The style isn't registered
projects/packages/forms/src/blocks/contact-form/index.jsx:
styles: [
{ name: 'default', label: __( 'Default', 'jetpack-forms' ), isDefault: true },
{ name: 'animated', label: __( 'Animated', 'jetpack-forms' ) },
{ name: 'outlined', label: __( 'Outlined', 'jetpack-forms' ) },
// Need to figure out some details. Putting on hold for now
// { name: 'below', label: 'Below' },
],
git log -S places that comment in fb1467d9f6 (Feb 2023); it has never been uncommented. So the style has never shipped, it can't be selected in the editor, and no saved content can carry is-style-below unless someone hand-authored it.
2. The editor rule can't match
projects/packages/forms/src/blocks/contact-form/editor.scss, nested under .jetpack-contact-form:
&.is-style-below {
.jetpack-field:not(.jetpack-field-checkbox) {
display: flex;
flex-direction: column-reverse;
}
}
&.is-style-below compiles to .jetpack-contact-form.is-style-below — both classes on the same element. In the editor they're on different elements. Measured in the canvas with the class hand-applied:
.jetpack-contact-form → "jetpack-contact-form has-no-jetpack-form-layout block-editor-block-list__layout …"
.is-style-below → "block-editor-block-list__block wp-block is-style-below wp-block-jetpack-contact-form"
sameElement: false styleClassIsAncestorOfJcf: true
The outlined and animated rules immediately above use the ancestor form (.is-style-outlined &), which is the shape that actually matches. Below is the odd one out. flex-direction on the field measured row, never column-reverse.
The front end is unaffected — it goes through render_below_label() rather than a CSS reversal.
What reviving it involves
- Correct the selector to the ancestor form used by the other two styles.
- Account for the current field DOM:
.jetpack-field's direct children are now.jetpack-field__control(label + input) and.contact-form__field-hints, so the reversal belongs on.jetpack-field__control(and.jetpack-field-dropdown__wrapperfor select) — otherwise it reverses the hints above the field instead of putting the input above the label. - Register the style in
index.jsx. - Resolve whatever "some details" the 2023 comment refers to.
Context
Found during review of #51122, which changed the field DOM and prompted a check of what depends on it. The fix was deliberately left out of that PR — switching on CSS for an unregistered style would change rendering for any hand-authored content using the class. See https://github.com/Automattic/jetpack/pull/51122#discussion_r3770245012.
- Dominant language
- PHP
- Stars
- 1.9k
- Forks
- 913
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 809
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Automattic/jetpack
-
Bug Needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Automattic/jetpack#55870 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Automattic/jetpack#55385 · 1 comment ·
Maintainers usually reply within 1 day
-
WAF: jetpack_waf_blocklog is created without the site's charset and collationPossibly taken @jwebbdev claimed this 3 days ago. Open[Plugin] Protect Bug Customer Report
Difficulty 1/5 Under an hour Newbie friendliness 85/100
Automattic/jetpack#55365 · 1 assignee ·
Maintainers usually reply within 1 day
-
[Package] Stats Admin [Type] Bug
Difficulty 1/5 Under an hour Newbie friendliness 86/100
Automattic/jetpack#54188 ·
Maintainers usually reply within 1 day
-
Bug Needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Automattic/jetpack#53467 ·
Maintainers usually reply within 1 day
All issues in Automattic/jetpack
Similar issues
-
follow-up
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Invoice reminders more than a month after the due date, and bill reminders more than a month before it, are not sentPossibly taken @officialasishkumar claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Automattic/blocks-engine#7881 ·
Maintainers usually reply within 1 day
-
[FrameworkBundle] MicroKernelTrait lists BundleAdapter instead of the bundle class in kernel.bundlesPossibly taken A pull request linked to this issue is open or already merged. OpenBug FrameworkBundle Status: Needs Review
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
[Flaky Test] testMonitorCallbackReturnExitsPossibly taken @uintaam claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
valkey-io/valkey-glide-php#515 ·
Maintainers usually reply within 4 days