From 9b7b90793f3a238c7c24bb9600f298ec70ae6c5c Mon Sep 17 00:00:00 2001 From: emyarod Date: Tue, 21 Jan 2020 17:47:06 -0600 Subject: [PATCH] fix(modal): prevent modal from shifting when scrollbar appears (#5119) --- packages/components/src/components/modal/_modal.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/components/src/components/modal/_modal.scss b/packages/components/src/components/modal/_modal.scss index c1b00f091700..4f032c265420 100644 --- a/packages/components/src/components/modal/_modal.scss +++ b/packages/components/src/components/modal/_modal.scss @@ -25,13 +25,13 @@ .#{$prefix}--modal { position: fixed; top: 0; - right: 0; - bottom: 0; left: 0; z-index: z('modal'); display: flex; align-items: center; justify-content: center; + width: 100vw; + height: 100vh; content: ''; background-color: transparent; opacity: 0;