From 537225ed28921fd77eb04b8bb71ad75c8fb0826f Mon Sep 17 00:00:00 2001 From: Meriemu Date: Thu, 5 Sep 2024 11:04:44 +0200 Subject: [PATCH] feat(redmine 1306622): add role to the calendar wrapper (#213) Co-authored-by: Quentin Le Caignec <12102823+QuentinLeCaignec@users.noreply.github.com> --- .changeset/thirty-pets-obey.md | 5 +++++ .../src/Components/CalendarHeader/CalendarHeader.tsx | 1 + .../__snapshots__/CalendarHeader.test.tsx.snap | 1 + 3 files changed, 7 insertions(+) create mode 100644 .changeset/thirty-pets-obey.md 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);" >