Skip to content
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

[EuiDatePicker] Add screenreader-only calendar week day labels #7748

Merged
merged 17 commits into from
May 20, 2024
Merged
Show file tree
Hide file tree
Changes from 14 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions packages/eui/changelogs/upcoming/7748.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
**Accessibility**

- Improved the accessibility of `EuiDatePicker` by providing sr-only full-text week day names to the calendar header for english locale
mgadewoll marked this conversation as resolved.
Show resolved Hide resolved

Original file line number Diff line number Diff line change
Expand Up @@ -87,37 +87,100 @@ exports[`EuiDatePicker localization accepts the locale prop 1`] = `
<div
class="react-datepicker__day-name"
>
<span
aria-hidden="true"
>
</span>
<span
class="emotion-euiScreenReaderOnly"
>
일요일
</span>
</div>
<div
class="react-datepicker__day-name"
>
<span
aria-hidden="true"
>
</span>
<span
class="emotion-euiScreenReaderOnly"
>
월요일
</span>
</div>
<div
class="react-datepicker__day-name"
>
<span
aria-hidden="true"
>
</span>
<span
class="emotion-euiScreenReaderOnly"
>
화요일
</span>
</div>
<div
class="react-datepicker__day-name"
>
<span
aria-hidden="true"
>
</span>
<span
class="emotion-euiScreenReaderOnly"
>
수요일
</span>
</div>
<div
class="react-datepicker__day-name"
>
<span
aria-hidden="true"
>
</span>
<span
class="emotion-euiScreenReaderOnly"
>
목요일
</span>
</div>
<div
class="react-datepicker__day-name"
>
<span
aria-hidden="true"
>
</span>
<span
class="emotion-euiScreenReaderOnly"
>
금요일
</span>
</div>
<div
class="react-datepicker__day-name"
>
<span
aria-hidden="true"
>
</span>
<span
class="emotion-euiScreenReaderOnly"
>
토요일
</span>
</div>
</div>
</div>
Expand Down Expand Up @@ -490,37 +553,100 @@ exports[`EuiDatePicker localization inherits locale from context 1`] = `
<div
class="react-datepicker__day-name"
>
lu
<span
aria-hidden="true"
>
lu
</span>
<span
class="emotion-euiScreenReaderOnly"
>
lundi
</span>
</div>
<div
class="react-datepicker__day-name"
>
ma
<span
aria-hidden="true"
>
ma
</span>
<span
class="emotion-euiScreenReaderOnly"
>
mardi
</span>
</div>
<div
class="react-datepicker__day-name"
>
me
<span
aria-hidden="true"
>
me
</span>
<span
class="emotion-euiScreenReaderOnly"
>
mercredi
</span>
</div>
<div
class="react-datepicker__day-name"
>
je
<span
aria-hidden="true"
>
je
</span>
<span
class="emotion-euiScreenReaderOnly"
>
jeudi
</span>
</div>
<div
class="react-datepicker__day-name"
>
ve
<span
aria-hidden="true"
>
ve
</span>
<span
class="emotion-euiScreenReaderOnly"
>
vendredi
</span>
</div>
<div
class="react-datepicker__day-name"
>
sa
<span
aria-hidden="true"
>
sa
</span>
<span
class="emotion-euiScreenReaderOnly"
>
samedi
</span>
</div>
<div
class="react-datepicker__day-name"
>
di
<span
aria-hidden="true"
>
di
</span>
<span
class="emotion-euiScreenReaderOnly"
>
dimanche
</span>
</div>
</div>
</div>
Expand Down
Loading
Loading