impress-org / givewp

GiveWP - The #1 Donation Plugin for WordPress. Easily accept donations and fundraise using your WordPress website.
https://givewp.com/
GNU General Public License v3.0
345 stars 191 forks source link

Donation amount field should use appropriate numeric/decimal keypad on iOS #6047

Closed knowler closed 3 years ago

knowler commented 3 years ago

User Story

As an iOS, I want the custom donation amount input to use the appropriate keypad so that I can use decimals in my donation amount.

Details

Currently on iOS, the donation amount field uses the telephone keypad. This does not include decimals or commas (though commas can be added using the "pause" key — not ideal). The underlying input type tel is the issue and this can be fixed by using text with the inputmode attribute set to decimal.

Expected Behavior

The custom donation amount input to use the appropriate keypad on iOS and Android. This means allowing for numbers as well as decimals and comma.

Steps to Reproduce

  1. Try setting the custom amount with a decimal value in the donation amount field on iOS.

Visuals

https://user-images.githubusercontent.com/6908001/138127915-15cd7cdc-6ee3-4e73-a825-87282c7a01d7.mp4

givewp-amount-input-no-decimals-ios-keypad-numbers

givewp-amount-input-no-decimals-ios-keypad-symbols

Additional Context

This field uses type=tel since that was a common hack to get mobile devices to use a numeric keypad.

About the hack:

About this proposed changed:

System Information

Details - iOS 14.5 - GiveWP 2.15.0

Acceptance Criteria

canny[bot] commented 3 years ago

This issue has been linked to a Canny post: Donation amount field should use appropriate numeric/decimal keypad on iOS :tada: