@@ -60,7 +60,10 @@ export default {
6060</docs >
6161<template >
6262 <transition name =" fade" >
63- <div ref =" mask" class =" modal-mask" @click =" handleMouseMove"
63+ <div ref =" mask"
64+ class =" modal-mask"
65+ :class =" { 'modal-mask--dark' : dark }"
66+ @click =" handleMouseMove"
6467 @mousemove =" handleMouseMove" @touchmove =" handleMouseMove" >
6568 <!-- Header -->
6669 <transition name =" fade-visibility" >
@@ -256,6 +259,11 @@ export default {
256259 canClose: {
257260 type: Boolean ,
258261 default: true
262+ },
263+ /** Makes the modal backdrop black if true */
264+ dark: {
265+ type: Boolean ,
266+ default: false
259267 }
260268 },
261269
@@ -459,7 +467,10 @@ $header-size: 50px;
459467 display : block ;
460468 width : 100% ;
461469 height : 100% ;
462- background-color : rgba (0 , 0 , 0 , .92 );
470+ background-color : rgba (0 , 0 , 0 , .5 );
471+ & --dark {
472+ background-color : black ;
473+ }
463474}
464475
465476.modal-header {
@@ -643,7 +654,7 @@ $header-size: 50px;
643654 transition : transform 300ms ease ;
644655 border-radius : var (--border-radius-large );
645656 background-color : var (--color-main-background );
646- box-shadow : 0 2 px 8 px rgba (0 , 0 , 0 , .33 );
657+ box-shadow : 0 0 40 px rgba (0 , 0 , 0 , .2 );
647658 }
648659 & :not (&--large):not (&--full) .modal-container {
649660 max-width : 900px ;
0 commit comments