shibro
Show the version of “A verification code opens a digit pad with a Done key”

Advanced inputs · SU-316

A verification code opens a digit pad with a Done key

Flip between the version shibroUI flags and the one it ships. The marks and callouts show what changes.

  • Field type text · no inputmode
  • Field type inputmode=numeric
  • Action key says “return”
  • SMS code one-time-code offered
  • Action key enterkeyhint=done

What changes

Bad
A 6-digit code in a default text field: the full letter keyboard opens, the action key says return, and the SMS code is not offered.
Good
inputmode="numeric", autocomplete="one-time-code" and enterkeyhint="done": a digit pad with a Done key, and the SMS code offered above it.

The rules

  • SU-316

    Every field gets the right type, inputmode and enterkeyhint. Set type, inputmode, enterkeyhint and autocomplete from what the field holds, so the phone opens the right keyboard with the right action key. Digit-only identifiers (verification codes, numeric postcodes, card and account numbers) use inputmode="numeric", never type="number".