drab 4.0.0 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -85,7 +85,7 @@ export let position = "l";
|
|
85
85
|
export let maxSize = 488;
|
86
86
|
export let transition = { duration, opacity: 1 };
|
87
87
|
let sheet;
|
88
|
-
let
|
88
|
+
let backdropStyles = true;
|
89
89
|
let displaySheet = false;
|
90
90
|
const dispatch = createEventDispatcher();
|
91
91
|
const close = () => display = false;
|
@@ -101,10 +101,10 @@ const lifecycle = (node) => {
|
|
101
101
|
};
|
102
102
|
const displayController = async (display2) => {
|
103
103
|
if (display2) {
|
104
|
-
|
104
|
+
backdropStyles = true;
|
105
105
|
displaySheet = true;
|
106
106
|
} else {
|
107
|
-
|
107
|
+
backdropStyles = false;
|
108
108
|
await tick();
|
109
109
|
displaySheet = false;
|
110
110
|
}
|
@@ -132,11 +132,10 @@ $:
|
|
132
132
|
|
133
133
|
{#if displaySheet}
|
134
134
|
<div
|
135
|
-
class="backdrop {className}"
|
135
|
+
class="backdrop {backdropStyles ? className : ''}"
|
136
136
|
class:backdrop-bottom={position === "b"}
|
137
137
|
class:backdrop-top={position === "t"}
|
138
138
|
class:backdrop-right={position === "r"}
|
139
|
-
class:backdrop-none={backdropNone}
|
140
139
|
{id}
|
141
140
|
>
|
142
141
|
<div
|
@@ -178,8 +177,4 @@ $:
|
|
178
177
|
.backdrop-right {
|
179
178
|
flex-direction: row-reverse;
|
180
179
|
}
|
181
|
-
.backdrop-none {
|
182
|
-
backdrop-filter: none;
|
183
|
-
background: none;
|
184
|
-
}
|
185
180
|
</style>
|