Skip to content
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

fix: preview & send buttons on WP 6.7 #1681

Merged
merged 1 commit into from
Oct 24, 2024
Merged

Conversation

adekbadek
Copy link
Member

All Submissions:

Changes proposed in this Pull Request:

WP 6.7 updates some styling, which breaks our custom buttons:

6.6 6.7
image image

This PR fixes that, while ensuring compatibility with 6.6.

How to test the changes in this Pull Request:

  1. On trunk, switch WP to 6.7 (wp core update --version=6.7-beta3)
  2. Open a newsletter or create a new on, observe broken UI
  3. Switch to this branch, observe UI is now fine

Other information:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes, as applicable?
  • Have you successfully ran tests with your changes locally?

Copy link

codecov bot commented Oct 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 20.30%. Comparing base (57d83fc) to head (ffb9971).

Additional details and impacted files
@@            Coverage Diff            @@
##              trunk    #1681   +/-   ##
=========================================
  Coverage     20.30%   20.30%           
  Complexity     2663     2663           
=========================================
  Files            48       48           
  Lines         10616    10616           
=========================================
  Hits           2156     2156           
  Misses         8460     8460           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@laurelfulford laurelfulford left a comment

Choose a reason for hiding this comment

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

Such a good find, @adekbadek! 🙌

The buttons definitely look better.

One additional thing I noticed is that the buttons have also been reordered for posts and pages in WP 6.7, so they appear at the end:

CleanShot 2024-10-23 at 10 32 42

Do you see any issues with doing the same for Newsletters? If we did, we'd probably want to do it a little closer to the actual WP 6.7 release (so the change drops around the same time); if it sounds like an okay move I can spin up a separate issue for it.

Thanks!

@adekbadek
Copy link
Member Author

if it sounds like an okay move I can spin up a separate issue for it.

Please do, thanks! :)

@adekbadek adekbadek merged commit 49450d3 into trunk Oct 24, 2024
11 checks passed
@adekbadek adekbadek deleted the fix/send-button-styles branch October 24, 2024 07:30
@matticbot
Copy link
Contributor

🎉 This PR is included in version 3.4.0-alpha.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants