Skip to content

Support for Jetpack Form Block #2153

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Mar 15, 2023
Merged

Conversation

tylersticka
Copy link
Member

@tylersticka tylersticka commented Mar 14, 2023

Overview

Extends styles for input components to classes related to the Jetpack form block, allowing us to experiment with targeted contact forms in WordPress.

Screenshots

Screenshot 2023-03-14 at 11-24-34 vendor-wordpress-jetpack-blocks--markdown

Testing

On the deploy preview, confirm:

@changeset-bot
Copy link

changeset-bot bot commented Mar 14, 2023

🦋 Changeset detected

Latest commit: e733007

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@cloudfour/patterns Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@netlify
Copy link

netlify bot commented Mar 14, 2023

Deploy Preview for cloudfour-patterns ready!

Name Link
🔨 Latest commit e733007
🔍 Latest deploy log https://app.netlify.com/sites/cloudfour-patterns/deploys/64122f7ae614c400080d1ecb
😎 Deploy Preview https://deploy-preview-2153--cloudfour-patterns.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@tylersticka tylersticka marked this pull request as ready for review March 14, 2023 18:36
@tylersticka tylersticka requested a review from a team March 14, 2023 18:36
Paul-Hebert
Paul-Hebert previously approved these changes Mar 15, 2023
Copy link
Contributor

@Paul-Hebert Paul-Hebert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! One small, non-blocking suggestion related to the success markup

<p></p>
<div class="field-name">Consent:</div>
<div class="field-value">Yes</div>
<p></p>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's wild that this is the markup Jetpack forms output. This has got to be used on so many websites... (Not a blocker at all, just... come on Jetpack...)


/// The submission message markup seems _ancient_. It apppears to be using
/// empty paragraphs to create spacing between elements. Luckily we're able to
/// style things adequately in spite of this.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we should be adding p:empty { display: none } to yoink those empty paragraphs out of the a11y tree?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Paul-Hebert I've made this change (see e733007), but it required refactoring the way the layout of this CSS works (since the hidden paragraphs no longer allowed the inline-block elements to break). I think this is better from the end user's perspective, just FYI when it comes time to re-review!

@tylersticka tylersticka merged commit 4e5b12b into main Mar 15, 2023
@tylersticka tylersticka deleted the feature/jetpack-contact-form-blocks branch March 15, 2023 21:30
@github-actions github-actions bot mentioned this pull request Mar 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants