jondavidjohn / payform

:credit_card: A library for building credit card forms, validating inputs, and formatting numbers.
https://jondavidjohn.github.io/payform/
Other
427 stars 81 forks source link

Add LTR mark for credit card and expiry payform fields #42

Closed ddayguerrero closed 6 years ago

ddayguerrero commented 6 years ago

Fixes #41

Changes

Why introduce these changes?

How is this achieved?

⚠️ For now, this fix will search for the global dir attribute. We could check for directionality within individual elements shall developers decide on specifying RTL on <input> elements instead of on<html>. (May change depending on if you feel comfortable deploying the suggested change on event normalization) ⚠️

arthurgouveia commented 6 years ago

I was able to test it on my machine and it indeed works.

jondavidjohn commented 6 years ago

@ddayguerrero I agree with @arthurgouveia's assessment on condition order above, otherwise, this looks good!