From a4d303cefdbe014b352ae5ae6ee416348b579656 Mon Sep 17 00:00:00 2001 From: Andrew Croce Date: Thu, 20 Sep 2018 11:45:17 -0400 Subject: [PATCH] Hide the bodys overflow when a modal is open so it doesnt scroll --- styles/components/_modal.scss | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/styles/components/_modal.scss b/styles/components/_modal.scss index 60d97865..aa0b1c44 100644 --- a/styles/components/_modal.scss +++ b/styles/components/_modal.scss @@ -1,5 +1,11 @@ $fixed-footer-height: 5rem + ($gap * 4); +body { + &.modal-open { + overflow-y: hidden; + } +} + .modal { position: fixed; z-index: 3;