nl-design-system / backlog

Central product backlog of the NL Design System.
European Union Public License 1.2
7 stars 1 forks source link

Component: Number input #125

Closed macedvisioned closed 2 months ago

macedvisioned commented 3 years ago

Naam

Number input

Link naar GitHub Discussion


Code

We won't use the HTML standard <input type="number"> as this might cause issues for users. Based on the decisions made by the GOV.UK Design System team we will use

<input type="text" inputmode="numeric" pattern="[0-9]*"/>
usethetics commented 3 years ago

Might be interesting to include or mention in our guidelines: Why the GOV.UK Design System team changed the input type for numbers

macedvisioned commented 3 years ago

Just adding an extra not to do in fieldnames. Don't use a "-" character in the fieldnames because this will have conflict in calculations.