Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Component: Number input #194

Open
jeffreylauwers opened this issue Jun 19, 2023 · 1 comment
Open

Component: Number input #194

jeffreylauwers opened this issue Jun 19, 2023 · 1 comment

Comments

@jeffreylauwers
Copy link

jeffreylauwers commented Jun 19, 2023

Purpose

Invoerveld waar een numerieke waarde kan worden ingevuld.

Notes

We verwachten hierbij het voorbeeld van GOV.UK te volgen.
https://technology.blog.gov.uk/2020/02/24/why-the-gov-uk-design-system-team-changed-the-input-type-for-numbers/

Technische dingen om rekening mee te houden

gebruik niet <input type="number"> zodat je geen spinner krijgt die niet gebruiksvriendelijk is.

gebruik in plaats daarvan <input type="text" input-mode="numeric"> zodat je het juiste toetsenbord krijgt op touch devices etc.

note het gebruik van <input type="text" input-mode="decimal"> heeft in het verleden problemen opgeleverd en hebben wij niet recent getest. Laat ons weten als het probleem dat gov.uk beschrijft niet meer voorkomt!

voor met decimalen zoals geldbedragen weten we niet wat je moet doen. In JavaScript en in HTML validatie is de decimal-separator een . in nederland een ,. Bij twijfel gebruik <input type="text"> met een goed validatiepatroon zodat mensen zowel een punt als een komma kunnen gebruiken.

@Yolijn
Copy link
Member

Yolijn commented Aug 4, 2023

Note to self: this is our interpretation of <input type=number>.... We might also want to add that component with a discouraged status and a link to the numeric-input. Or we might want to ensure we have a redirect for the url with nldesignsystem.nl/number-input and showing results when searching for it

@Yolijn Yolijn changed the title Numeric input Component: Numeric input Aug 4, 2023
@Yolijn Yolijn changed the title Component: Numeric input Component: Number input May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants