From 3d80787af7a005dd03c1cb632609a704c0ce4233 Mon Sep 17 00:00:00 2001 From: Michael Ellis Date: Mon, 11 Apr 2022 09:10:41 -0400 Subject: [PATCH 1/5] Fixes roles --- src/Dialog/Content/index.tsx | 6 +++--- src/Dialog/index.tsx | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Dialog/Content/index.tsx b/src/Dialog/Content/index.tsx index f078078f..a1d11997 100644 --- a/src/Dialog/Content/index.tsx +++ b/src/Dialog/Content/index.tsx @@ -14,12 +14,12 @@ export type ContentProps = { onVisibleChanged: (visible: boolean) => void; onMouseDown: React.MouseEventHandler; onMouseUp: React.MouseEventHandler; -} & IDialogChildProps +} & IDialogChildProps; export type ContentRef = { focus: () => void; changeActive: (next: boolean) => void; -} +}; const Content = React.forwardRef((props, ref) => { const { @@ -141,7 +141,7 @@ const Content = React.forwardRef((props, ref) => { {({ className: motionClassName, style: motionStyle }, motionRef) => (
Date: Mon, 11 Apr 2022 09:13:50 -0400 Subject: [PATCH 2/5] Adds aria-modal attribute --- src/Dialog/Content/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Dialog/Content/index.tsx b/src/Dialog/Content/index.tsx index a1d11997..01f4fd3e 100644 --- a/src/Dialog/Content/index.tsx +++ b/src/Dialog/Content/index.tsx @@ -142,6 +142,7 @@ const Content = React.forwardRef((props, ref) => {
Date: Tue, 12 Apr 2022 07:37:38 -0400 Subject: [PATCH 3/5] Updates snapshot --- tests/__snapshots__/index.spec.tsx.snap | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/__snapshots__/index.spec.tsx.snap b/tests/__snapshots__/index.spec.tsx.snap index 113560a9..acd91fb6 100644 --- a/tests/__snapshots__/index.spec.tsx.snap +++ b/tests/__snapshots__/index.spec.tsx.snap @@ -9,13 +9,12 @@ exports[`dialog add rootClassName should render correct 1`] = ` />