diff --git a/src/components/Footer/__snapshots__/Footer.spec.tsx.snap b/src/components/Footer/__snapshots__/Footer.spec.tsx.snap index f5ccc16..3f99c48 100644 --- a/src/components/Footer/__snapshots__/Footer.spec.tsx.snap +++ b/src/components/Footer/__snapshots__/Footer.spec.tsx.snap @@ -14,7 +14,7 @@ exports[`Footer to match snapshot 1`] = ` - ©2023 shifter | A Product by + ©2024 shifter | A Product by ; export const ModalRow: FC< @@ -39,6 +40,7 @@ export const ModalRow: FC< onSubmit, style, noPadding = false, + backdropDismiss, }) => { const { open, isOpen: isOpenHandler, dismiss } = useModal(); @@ -64,7 +66,7 @@ export const ModalRow: FC< aria-labelledby="modal-label" aria-hidden="false" aria-modal="true" - onClick={() => isOpenHandler(false)} + onClick={() => backdropDismiss && isOpenHandler(false)} style={style} >
= ({ dismiss = false, setOpen, targetElement, + backdropDismiss = true, // デフォルト値をtrueに設定 ...props }) => { const [_isOpen, _setIsOpen] = useState(open || false); @@ -122,7 +125,7 @@ export const Modal: FC = ({ dismiss, }} > - + , targetElement ); @@ -136,7 +139,7 @@ export const Modal: FC = ({ dismiss, }} > - + ); }; diff --git a/stories/layouts/__snapshots__/PublicPageLayout.spec.tsx.snap b/stories/layouts/__snapshots__/PublicPageLayout.spec.tsx.snap index 1f6a8f8..c8f8712 100644 --- a/stories/layouts/__snapshots__/PublicPageLayout.spec.tsx.snap +++ b/stories/layouts/__snapshots__/PublicPageLayout.spec.tsx.snap @@ -219,7 +219,7 @@ exports[`Nav to match snapshot [OneColumns] 1`] = ` - ©2023 Shifter | A Product by + ©2024 Shifter | A Product by - ©2023 Shifter | A Product by + ©2024 Shifter | A Product by - ©2023 Shifter | A Product by + ©2024 Shifter | A Product by - ©2023 Shifter | A Product by + ©2024 Shifter | A Product by - ©2023 Shifter | A Product by + ©2024 Shifter | A Product by - ©2023 Shifter | A Product by + ©2024 Shifter | A Product by - ©2023 Shifter | A Product by + ©2024 Shifter | A Product by - ©2023 Shifter | A Product by + ©2024 Shifter | A Product by - ©2023 Shifter | A Product by + ©2024 Shifter | A Product by - ©2023 Shifter | A Product by + ©2024 Shifter | A Product by - ©2023 Shifter | A Product by + ©2024 Shifter | A Product by - ©2023 Shifter | A Product by + ©2024 Shifter | A Product by - ©2023 Shifter | A Product by + ©2024 Shifter | A Product by - ©2023 Shifter | A Product by + ©2024 Shifter | A Product by - ©2023 Shifter | A Product by + ©2024 Shifter | A Product by - ©2023 Shifter | A Product by + ©2024 Shifter | A Product by - ©2023 Shifter | A Product by + ©2024 Shifter | A Product by