Automattic / Automattic/jetpack

Newsletter Preview: Button Misalignment when WooCommerce Installed

Open
#34,404 2 comments 0 reactions 0 assignees View on GitHub
[Feature] Subscriptions [Focus] Compatibility [Plugin] Jetpack [Pri] Low Bug Triaged
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

### Impacted plugin

Jetpack

### Quick summary

When WooCommerce is activated, there is a conflict between the CSS included with Jetpack and WooCommerce, resulting in the "Send test email" modal having an alignment issue.

### Steps to reproduce

1. Add WooCommerce to a Jetpack site
2. In the post preview panel under "Newsletters: All Subscribers", click the "Send test email"
3. See the button and form

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

The button input should be aligned. I think this could be fixed with a more specific CSS selector:

![Annotation on 2023-11-30 at 16-45-27](https://github.com/Automattic/jetpack/assets/45246438/a1ed1cb3-3d02-4185-82b2-f86355cd96cd)

### What actually happened

![Annotation on 2023-11-30 at 16-53-12](https://github.com/Automattic/jetpack/assets/45246438/a4af3107-7b02-46b6-8e96-dd2e1e65b8cd)

### Impact

Some (< 50%)

### Available workarounds?

Yes, difficult to implement

### Platform (Simple and/or Atomic)

_No response_

### Logs or notes

Tested on Jetpack 12.9-a.11 on Pressable

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue in the Jetpack newsletter post preview with WooCommerce activated, then inspect the code and styles for the “Send test email” modal. Done means the button input and form are aligned in the preview without breaking the modal when WooCommerce is not installed.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, php
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.