Skip to content

Commit

Permalink
fix(Datepicker): change role on calendar container to 'application' (#…
Browse files Browse the repository at this point in the history
…11570)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
dakahn and kodiakhq[bot] authored Jun 17, 2022
1 parent 08ee8d6 commit 5ac908b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/components/DatePicker/DatePicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ function DatePicker({
// Flatpickr's calendar dialog is not rendered in a landmark causing an
// error with IBM Equal Access Accessibility Checker so we add an aria
// role to the container div.
calendar.calendarContainer.setAttribute('role', 'region');
calendar.calendarContainer.setAttribute('role', 'application');
// IBM EAAC requires an aria-label on a role='region'
calendar.calendarContainer.setAttribute(
'aria-label',
Expand Down

0 comments on commit 5ac908b

Please sign in to comment.