-
Notifications
You must be signed in to change notification settings - Fork 5
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
Text input #21
Comments
Guidance added recently for asking for whole numbers. |
A comment on GDS text input issue: alphagov/govuk-design-system-backlog#51 (comment) |
It would be good to have the ability to add prefixes / suffixes to the text input component, similar to the GOV.UK Design System (https://design-system.service.gov.uk/components/text-input#prefixes-and-suffixes). There is a very common need for users to be able to enter information in things like pounds (£) or weight (kg) - or even to show the frequency of how often something happens e.g per week, month, year etc... Having these prefixes / suffixes sit outside of the main text input is important. I have attempted to bring this functionality into the NHS Design System by re-using the same styles etc... |
We've had some feedback about text input prefix and suffix. Do people understand "prefix" and "suffix" in this context? (Not the usual meaning of prefix and suffix.) What would they call these? |
Guidance on prefixes and suffixes now published on text input page. |
It would be good to have an example of a text input as a page heading. If a service was using page-per-thing this is what I'd expect to see, but it's not obvious from the current guidance page how you should do it. There's a paragraph of text noting it's possible, but it doesn't give instructions. I've tested by adding {{ input({
"label": {
"text": "Full name",
"classes": "nhsuk-label--l",
"isPageHeading": true
},
"id": "example",
"name": "example"
}) }} If people agree I think we want to:
|
There is a WCAG recommendation to increase text inputs from our standard 40px to 44px to improve target sizes for mobile users: https://www.w3.org/WAI/WCAG22/Understanding/target-size-enhanced.html#benefits |
Use this issue to discuss the text input in the NHS digital service manual
The text was updated successfully, but these errors were encountered: