Skip to content

Commit 7ada803

Browse files
committed
Add note about input type=“numeric"
1 parent b93cfab commit 7ada803

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

partials/section.forms.hbs

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,9 @@
7373
Number
7474
<input
7575
id="input-number"
76-
name="number"
77-
type="number" />
76+
type="text"
77+
inputmode="numeric"
78+
pattern="[0-9]*" />
7879
</label>
7980

8081
<label>
@@ -161,9 +162,14 @@
161162
</label>
162163

163164
<h4 id="notes-text-input">Notes:</h4>
164-
<p>
165-
<small>Add <code translate="no">autocomplete="new-password"</code> to <code>&lt;input&gt;</code> elements with a type of <code translate="no">password</code> to <a rel="external noopener" href="https://twitter.com/mmatuzo/status/1189041007117176832">make supporting browsers suggest secure passwords</a>.</small>
166-
</p>
165+
<ul>
166+
<li>
167+
<small>Add <code translate="no">autocomplete="new-password"</code> to <code>&lt;input&gt;</code> elements with a type of <code translate="no">password</code> to <a rel="external noopener" href="https://twitter.com/mmatuzo/status/1189041007117176832">make supporting browsers suggest secure passwords</a>.</small>
168+
</li>
169+
<li>
170+
<small><code>&lt;input type="number"&gt;</code> has <a rel="external noopener" href="https://technology.blog.gov.uk/2020/02/24/why-the-gov-uk-design-system-team-changed-the-input-type-for-numbers/">numerous issues with Dragon Naturally Speaking and NVDA</a>.</small>
171+
</li>
172+
</ul>
167173
</fieldset>
168174
<!-- End of #subsection-text-input -->
169175

0 commit comments

Comments
 (0)