diff --git a/.changeset/thirty-pets-obey.md b/.changeset/thirty-pets-obey.md new file mode 100644 index 00000000..8fa950ea --- /dev/null +++ b/.changeset/thirty-pets-obey.md @@ -0,0 +1,5 @@ +--- +'@smile/haring-react-dates': minor +--- + +add a role to MantineCalendarHeader diff --git a/packages/haring-react-dates/src/Components/CalendarHeader/CalendarHeader.tsx b/packages/haring-react-dates/src/Components/CalendarHeader/CalendarHeader.tsx index 4bb7bfe6..de9b9fa6 100644 --- a/packages/haring-react-dates/src/Components/CalendarHeader/CalendarHeader.tsx +++ b/packages/haring-react-dates/src/Components/CalendarHeader/CalendarHeader.tsx @@ -89,6 +89,7 @@ export function CalendarHeader(props: ICalendarHeaderProps): ReactElement { color="red" label={label} onLevelClick={() => setOpened(!opened)} + role="region" size="md" {...calendarHeaderProps} /> diff --git a/packages/haring-react-dates/src/Components/CalendarHeader/__snapshots__/CalendarHeader.test.tsx.snap b/packages/haring-react-dates/src/Components/CalendarHeader/__snapshots__/CalendarHeader.test.tsx.snap index 9965d95c..999c695c 100644 --- a/packages/haring-react-dates/src/Components/CalendarHeader/__snapshots__/CalendarHeader.test.tsx.snap +++ b/packages/haring-react-dates/src/Components/CalendarHeader/__snapshots__/CalendarHeader.test.tsx.snap @@ -23,6 +23,7 @@ exports[`CalendarHeader matches snapshot 1`] = ` color="red" data-size="md" id="mantine-f4bipx4bi-target" + role="region" style="--dch-control-size: var(--dch-control-size-md); --dch-fz: var(--mantine-font-size-md);" >