From 44875889ec836626a570c2208ef811967359b785 Mon Sep 17 00:00:00 2001 From: Oliver Byford Date: Thu, 9 Jul 2020 10:27:11 +0100 Subject: [PATCH] Use better 'autocomplete' example for date input You'd never use "postal-code" or "username" as an autocomplete attribute on an input in the date input component, but you might use "bday-day" if the date input was asking for the user's birthday. Provide "bday-day" as a more realistic example to help users understand how the attribute can be used effectively with this component. --- src/govuk/components/date-input/date-input.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/govuk/components/date-input/date-input.yaml b/src/govuk/components/date-input/date-input.yaml index f1c531027b..94afd32cb3 100644 --- a/src/govuk/components/date-input/date-input.yaml +++ b/src/govuk/components/date-input/date-input.yaml @@ -31,7 +31,7 @@ params: - name: autocomplete type: string required: false - description: Attribute to [identify input purpose](https://www.w3.org/WAI/WCAG21/Understanding/identify-input-purpose.html), for instance "postal-code" or "username". See [autofill](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill) for full list of attributes that can be used. + description: Attribute to [identify input purpose](https://www.w3.org/WAI/WCAG21/Understanding/identify-input-purpose.html), for instance "bday-day". See [autofill](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill) for full list of attributes that can be used. - name: pattern type: string required: false