Skip to content

Commit 1b3fe3a

Browse files
emyarodjoshblack
authored andcommitted
fix(modal): prevent modal from shifting when scrollbar appears (#5119)
1 parent b30d5f6 commit 1b3fe3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/components/src/components/modal/_modal.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@
2525
.#{$prefix}--modal {
2626
position: fixed;
2727
top: 0;
28-
right: 0;
29-
bottom: 0;
3028
left: 0;
3129
z-index: z('modal');
3230
display: flex;
3331
align-items: center;
3432
justify-content: center;
33+
width: 100vw;
34+
height: 100vh;
3535
content: '';
3636
background-color: transparent;
3737
opacity: 0;

0 commit comments

Comments
 (0)