From 200181da649724d307b358ab148bf966d17e31ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Tard=C3=ADn?= Date: Tue, 8 Nov 2022 10:37:15 +0100 Subject: [PATCH] Fixing keyboard navigation inside modals https://github.com/reactjs/react-modal/issues/782#issuecomment-796844745 --- .../creepyface-site/src/components/Modal.tsx | 8 +++++--- .../creepyface-site/src/components/Video.tsx | 1 + packages/creepyface-site/src/scss/_button.scss | 17 ++++++++--------- packages/creepyface-site/src/scss/_mixins.scss | 16 +++++++++++----- packages/creepyface-site/src/scss/_modal.scss | 3 +++ packages/creepyface-site/src/scss/_page.scss | 6 ------ 6 files changed, 28 insertions(+), 23 deletions(-) diff --git a/packages/creepyface-site/src/components/Modal.tsx b/packages/creepyface-site/src/components/Modal.tsx index d908502a..061e8e30 100644 --- a/packages/creepyface-site/src/components/Modal.tsx +++ b/packages/creepyface-site/src/components/Modal.tsx @@ -46,10 +46,12 @@ export default function Modal({ )} > -
{children}
+ {!barebones && ( + + )} ) } diff --git a/packages/creepyface-site/src/components/Video.tsx b/packages/creepyface-site/src/components/Video.tsx index bceb1670..18945a99 100644 --- a/packages/creepyface-site/src/components/Video.tsx +++ b/packages/creepyface-site/src/components/Video.tsx @@ -67,6 +67,7 @@ export default function Video(props: { return (