mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
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:
parent
18188c0c2e
commit
1e9a34808f
1 changed files with 5 additions and 0 deletions
|
@ -180,6 +180,11 @@
|
|||
return dispatch(event, detail);
|
||||
},
|
||||
});
|
||||
calendar?.calendarContainer?.setAttribute("role", "application");
|
||||
calendar?.calendarContainer?.setAttribute(
|
||||
"aria-label",
|
||||
"calendar-container"
|
||||
);
|
||||
}
|
||||
|
||||
onMount(() => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue