fix(date-picker): set role, aria-label attributes on calendar container (#1461)

Ref: 6b57099f46/packages/react/src/components/DatePicker/DatePicker.js (L385-L390)
This commit is contained in:
metonym 2022-08-23 07:57:40 -07:00 committed by GitHub
commit 1e9a34808f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -180,6 +180,11 @@
return dispatch(event, detail); return dispatch(event, detail);
}, },
}); });
calendar?.calendarContainer?.setAttribute("role", "application");
calendar?.calendarContainer?.setAttribute(
"aria-label",
"calendar-container"
);
} }
onMount(() => { onMount(() => {