Skip to content

Commit

Permalink
chore: add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mgadewoll committed May 14, 2024
1 parent 5ca6ff7 commit d55580a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,8 @@ export default class Calendar extends React.Component {
<div key={offset} className="react-datepicker__day-name">
<span aria-hidden={isLocaleEnglish ? 'true' : undefined}>{weekDayName}</span>
{isLocaleEnglish && (
// we're using sr-only and aria-hidden here instead of aria-label as aria-label is
// not generally applied/read by screen readers for non-semantic element like div
<EuiScreenReaderOnly>
<span>
{WEEK_DAY_NAMES[currentDayIndex]}
Expand Down

0 comments on commit d55580a

Please sign in to comment.