From c97876336a0f54035882394c4c038f143a1a0279 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Tue, 9 Jul 2019 22:55:07 +0200 Subject: [PATCH] prevent modal background scrolling --- client/src/components/atoms/Modal.module.scss | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/src/components/atoms/Modal.module.scss b/client/src/components/atoms/Modal.module.scss index 313ed8a..82a6b9a 100644 --- a/client/src/components/atoms/Modal.module.scss +++ b/client/src/components/atoms/Modal.module.scss @@ -1,5 +1,10 @@ @import '../../styles/variables'; +// prevent background scrolling +:global(.ReactModal__Body--open) { + overflow: hidden; +} + .modalOverlay { position: fixed; top: 0;