Skip to content

Commit

Permalink
Add inputmode to a note on type="number"
Browse files Browse the repository at this point in the history
Improve the guidance by mentioning `inputmode` (alongside `pattern`) as
it now has good cross browser support for showing the numeric keypad on
mobile.

A follow up issue will be raised to improve the wording to make a clearer
recommendation to use `inputmode`.

Include names of contributors under Acknowledgements.

Co-authored-by: Hanna Laakso <hanna.laakso@digital.cabinet-office.gov.uk>
Co-authored-by: Mark Green <mark.green@digital.cabinet-office.gov.uk>
  • Loading branch information
hannalaakso and m-green committed May 26, 2020
1 parent f50ef72 commit 7634740
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source
Original file line number Diff line number Diff line change
Expand Up @@ -47659,7 +47659,7 @@ ldh-str = &lt; as defined in <a href="https://tools.ietf.org/html/rfc1034#
wrong as getting every digit incorrect. So it would not make sense for the user to select a credit
card number using "up" and "down" buttons. When a spinbox interface is not appropriate, <code
data-x="">type=text</code> is probably the right choice (possibly with a <code
data-x="attr-input-pattern">pattern</code> attribute).</p>
data-x="attr-input-pattern">pattern</code> or <code data-x="attr-inputmode">inputmode</code> attribute).</p>



Expand Down Expand Up @@ -125309,6 +125309,7 @@ INSERT INTERFACES HERE
Habib Virji,
Hajime Morrita,
Hallvord Reiar Michaelsen Steen,
Hanna Laakso,
Hans S. T&oslash;mmerhalt,
Hans Stimer,
Harald Alvestrand,
Expand Down Expand Up @@ -125552,6 +125553,7 @@ INSERT INTERFACES HERE
Mark Amery,
Mark Birbeck,
Mark Davis,
Mark Green,
Mark Miller,
Mark Nottingham,
Mark Pilgrim,
Expand Down

0 comments on commit 7634740

Please sign in to comment.