Skip to content

Commit

Permalink
docs(date picker component): change to input field and example height
Browse files Browse the repository at this point in the history
  • Loading branch information
robertjmccarthy committed Jul 1, 2024
1 parent 98ed962 commit f95a5bc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions docs/components/date-picker.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: Date picker

<span class="govuk-caption-xl">The date picker component allows users to pick a date by entering a date or choosing from a calendar.</span>

{% example "/examples/date-picker", 220 %}
{% example "/examples/date-picker", 590 %}

## When to use

Expand Down Expand Up @@ -36,7 +36,7 @@ You can set allowed date ranges if you need a user to pick a date within a date

Users may type unavailable or disabled dates in the input field, so error messages will be necessary.

{% example "/examples/date-picker", 220 %}
{% example "/examples/date-picker", 590 %}

INCLUDE SOMETHING HERE === You can disable specific dates (e.g. 17/10/2024, 18/10/2024, 19/10/2024).

Expand All @@ -52,19 +52,19 @@ When stacking 2 date pickers horizontally or vertically, apply padding that is c

Multiple date picker components can be vertically stacked. This is useful when used in vertical filters or forms.

{% example "/examples/date-picker", 220 %}
{% example "/examples/date-picker", 590 %}

### Horizontally stacked

Multiple date picker components can be horizontally displayed. This is useful when used in horizontal filters.

{% example "/examples/date-picker", 220 %}
{% example "/examples/date-picker", 590 %}

## Errors

Follow the guidance in the [GOV.UK Design System](https://design-system.service.gov.uk/components/error-message/) for error messages.

{% example "/examples/date-picker", 220 %}
{% example "/examples/date-picker", 590 %}

### Error messages in English and Welsh

Expand Down
2 changes: 1 addition & 1 deletion docs/examples/date-picker/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ arguments: date-picker
id: "submisison-date",
name: "submisison-date",
label: {
text: "Submission date"
text: "Date"
},
hint: {
text: "For example, 17/5/2024."
Expand Down

0 comments on commit f95a5bc

Please sign in to comment.