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

Add alternate and minimal styles to donate block #1068

Merged
merged 4 commits into from
Mar 18, 2022

Conversation

thomasguillot
Copy link
Contributor

@thomasguillot thomasguillot commented Mar 16, 2022

All Submissions:

Changes proposed in this Pull Request:

This PR adds 2 new styles to the Donate Block: "Alternate" and "Minimal"

Default style

1 default

Alternate style (using Newspack as the Reader Revenue platform)

2 newspack

Alternate style (using Stripe as the Reader Revenue platform)

3 stripe

Minimal style (using Newspack as the Reader Revenue platform)

4 newspack

Minimal style (using Stripe as the Reader Revenue platform)

5 stripe

How to test the changes in this Pull Request:

  1. Switch to this branch
  2. On a page, insert 3 donate blocks -- 1 using the default style, 1 using the alternate style and 1 using the minimal style
  3. Test if the blocks work
  4. Test the different Reader Revenue platforms

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
Member

@adekbadek adekbadek left a comment

Choose a reason for hiding this comment

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

If more than one payment method is available, the buttons are misaligned:

image

For comparison, here's master:

image

This can be emulated by adding another button in the .stripe-payment__methods element via browser devtools or in the PHP code.

@thomasguillot
Copy link
Contributor Author

If more than one payment method is available, the buttons are misaligned:

Fixed in d3751c7

@thomasguillot
Copy link
Contributor Author

In fbe9d44 I've added a new "Minimal" style (updating PR desc/testing)

@thomasguillot thomasguillot changed the title Add alternate style to donate block Add alternate and minimal styles to donate block Mar 16, 2022
Copy link
Member

@adekbadek adekbadek left a comment

Choose a reason for hiding this comment

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

👌

@thomasguillot thomasguillot merged commit 3c914d2 into master Mar 18, 2022
@thomasguillot thomasguillot deleted the add/donate-block-alternate-style branch March 18, 2022 12:11
matticbot pushed a commit that referenced this pull request Mar 31, 2022
# [1.47.0-alpha.1](v1.46.1...v1.47.0-alpha.1) (2022-03-31)

### Bug Fixes

* **author-list:** handle alphabetizing last names containing spaces ([#1057](#1057)) ([1af7e19](1af7e19))
* authors and guest authors in homepage posts ([#1083](#1083)) ([038d9a4](038d9a4))
* donate block non-default styles grid breakpoint ([#1078](#1078)) ([5450e57](5450e57))
* **homepage-posts:** post fetch for widget blocks ([#1066](#1066)) ([3734a3f](3734a3f))

### Features

* add alternate and minimal styles to donate block ([#1068](#1068)) ([3c914d2](3c914d2))
@matticbot
Copy link
Contributor

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

The release is available on GitHub release

Your semantic-release bot 📦🚀

matticbot pushed a commit that referenced this pull request Apr 5, 2022
# [1.47.0](v1.46.1...v1.47.0) (2022-04-05)

### Bug Fixes

* **author-list:** handle alphabetizing last names containing spaces ([#1057](#1057)) ([1af7e19](1af7e19))
* authors and guest authors in homepage posts ([#1083](#1083)) ([038d9a4](038d9a4))
* donate block non-default styles grid breakpoint ([#1078](#1078)) ([5450e57](5450e57))
* **homepage-posts:** post fetch for widget blocks ([#1066](#1066)) ([3734a3f](3734a3f))
* incorrect nesting of tax_query args ([#1087](#1087)) ([a613874](a613874))

### Features

* add alternate and minimal styles to donate block ([#1068](#1068)) ([3c914d2](3c914d2))
@matticbot
Copy link
Contributor

🎉 This PR is included in version 1.47.0 🎉

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