Skip to content

Commit

Permalink
Merge pull request #2822 from uswds/cb-date-picker-and-date-range-gui…
Browse files Browse the repository at this point in the history
…dance

USWDS-Site - Guidance: Update usability guidance for Date Picker and Date Range Picker
  • Loading branch information
thisisdano authored Nov 25, 2024
2 parents ba61800 + 5d55023 commit 3e1638c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
3 changes: 2 additions & 1 deletion _components/date-picker/guidance/usability.md
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
- **Describe the date format.** Provide a hint of `mm/dd/yyyy` to help users enter the proper date format if they opt not to use the date picker.
- **Describe the date format.** Provide a hint of `mm/dd/yyyy` to help users enter the proper date format if they opt not to use the date picker.
- **Always allow a user to type in the date manually.** Usability testing suggests some people prefer manually typing the date rather than using the calendar picker. Whenever possible, keep the keyboard active so people can enter in the date information without having to use the picker.
3 changes: 2 additions & 1 deletion _components/date-range-picker/guidance/usability.md
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
- **Describe the date format.** Provide a hint of `mm/dd/yyyy` to help users enter the proper date format if they opt not to use the date picker.
- **Describe the date format.** Provide a hint of `mm/dd/yyyy` to help users enter the proper date format if they opt not to use the date picker.
- **Always allow a user to type in the date manually.** Usability testing suggests some people prefer manually typing the date rather than using the calendar picker. Whenever possible, keep the keyboard active so people can enter in the date information without having to use the picker.
5 changes: 5 additions & 0 deletions _data/changelogs/component-date-picker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ title: Date picker
type: component
changelogURL:
items:
- date: 2024-11-19
summary: Added guidance about always allowing users to type in the date manually.
affectsGuidance: true
githubPr: 2822
githubRepo: uswds-site
- date: 2024-10-04
summary: Fixed a bug that caused `mouseover` events to prevent keyboard navigation.
summaryAdditional: Now when you hover your mouse over the date picker buttons, only the hover state will be triggered.
Expand Down
5 changes: 5 additions & 0 deletions _data/changelogs/component-date-range-picker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ title: Date range picker
type: component
changelogURL:
items:
- date: 2024-11-19
summary: Added guidance about always allowing users to type in the date manually.
affectsGuidance: true
githubPr: 2822
githubRepo: uswds-site
- date: 2024-10-04
summary: Fixed a bug that caused `mouseover` events to prevent keyboard navigation.
summaryAdditional: Now when you hover your mouse over the date picker buttons, only the hover state will be triggered.
Expand Down

0 comments on commit 3e1638c

Please sign in to comment.