Skip to content

Commit

Permalink
date-picker: drop keyboard-instruction setting
Browse files Browse the repository at this point in the history
  • Loading branch information
elpoelma committed Aug 22, 2024
1 parent b274294 commit c31bdea
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/chilly-candles-mix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'frontend-gelinkt-notuleren': patch
---

Drop the redundant `keyboardInstruction` setting of date-picker, as the date-picker now uses a table element, which screen readers already know how to handle.
1 change: 0 additions & 1 deletion app/components/date-time-picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ export default class DateTimePicker extends Component {
monthSelectLabel: this.intl.t('au-date-picker.month-select-label'),
yearSelectLabel: this.intl.t('au-date-picker.year-select-label'),
closeLabel: this.intl.t('au-date-picker.close-label'),
keyboardInstruction: this.intl.t('au-date-picker.keyboard-instruction'),
calendarHeading: this.intl.t('au-date-picker.calendar-heading'),
dayNames: getLocalizedDays(this.intl),
monthNames: getLocalizedMonths(this.intl),
Expand Down
1 change: 0 additions & 1 deletion translations/appuniversum/en-us.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@ au-date-picker:
month-select-label: 'Month'
year-select-label: 'Year'
close-label: 'Close windows'
keyboard-instruction: 'You can use arrow keys to navigate dates'
calendar-heading: 'Choose a date'
placeholder: 'DD-MM-YYYY'

0 comments on commit c31bdea

Please sign in to comment.