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: currency symbol handling #850

Merged
merged 3 commits into from
Sep 3, 2021
Merged

Conversation

adekbadek
Copy link
Member

All Submissions:

Changes proposed in this Pull Request:

Closes Automattic/newspack-plugin#235.

How to test the changes in this Pull Request:

  1. On master, choose "Uzbekistani som" as the currency in Reader Revenue wizard
  2. Visit a page with a Donate block, observe the money input (when chosen "Other" as the amount) displays the currency symbol and input in two separate lines
  3. Switch to this branch, rebuild, observe issue resolved

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

@miguelpeixe miguelpeixe left a comment

Choose a reason for hiding this comment

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

The new rules are being applied only for .tiered donate blocks, they could be replicated to work with the .untiered block, but I believe it makes sense applied to all money-input elements.

@adekbadek
Copy link
Member Author

Good catch, @miguelpeixe ! Fixed in 158147f

Copy link
Member

@miguelpeixe miguelpeixe left a comment

Choose a reason for hiding this comment

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

As the linter already accused, there's already a selector for .wpbnbd .money-input that should be prioritized for the new rules.

@adekbadek
Copy link
Member Author

Fixed in 44ac1ed 👌

Copy link
Member

@miguelpeixe miguelpeixe left a comment

Choose a reason for hiding this comment

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

💯

@adekbadek adekbadek merged commit 9637d89 into master Sep 3, 2021
@adekbadek adekbadek deleted the fix/currency-symbol-styling branch September 3, 2021 13:26
matticbot pushed a commit that referenced this pull request Sep 7, 2021
# [1.37.0-alpha.1](v1.36.0...v1.37.0-alpha.1) (2021-09-07)

### Bug Fixes

* currency symbol handling ([#850](#850)) ([9637d89](9637d89))
* show all saved post types in specific posts field ([#857](#857)) ([42c25a9](42c25a9))

### Features

* make Donate Block 'thank you' text editable ([#854](#854)) ([7e8f1ea](7e8f1ea))
@matticbot
Copy link
Contributor

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

The release is available on GitHub release

Your semantic-release bot 📦🚀

matticbot pushed a commit that referenced this pull request Sep 8, 2021
# [1.37.0](v1.36.0...v1.37.0) (2021-09-08)

### Bug Fixes

* currency symbol handling ([#850](#850)) ([9637d89](9637d89))
* only show category link anchor tags if the category has a link ([#863](#863)) ([549f03a](549f03a))
* show all saved post types in specific posts field ([#857](#857)) ([42c25a9](42c25a9))

### Features

* make Donate Block 'thank you' text editable ([#854](#854)) ([7e8f1ea](7e8f1ea))
@matticbot
Copy link
Contributor

🎉 This PR is included in version 1.37.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.

Currency handling improvements
3 participants