Add some letter spacing to two factor textbox

Entering, or reading back sequences of digits is easier when they’re a
bit more spaced out.

This is because we read words as shapes, but read numbers
digit-by-digit.

So this commit adjusts the tracking of the type to put a bit more space
in for textboxes that are going to accept digits.
This commit is contained in:
Chris Hill-Scott
2017-10-16 16:51:44 +01:00
parent 7809a70cf3
commit 57069e427d
5 changed files with 13 additions and 4 deletions

View File

@@ -16,7 +16,7 @@
<form method="post" class="js-stick-at-top-when-scrolling" data-module="autofocus" autocomplete="off">
<div class="grid-row">
<div class="column-two-thirds">
<div class="column-two-thirds {% if form.placeholder_value.label.text == 'phone number' %}extra-tracking{% endif %}">
{{ textbox(
form.placeholder_value,
hint='Optional' if optional_placeholder else None,