@luciodale/docs-ui-kit 0.3.32 → 0.3.34
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.
package/package.json
CHANGED
|
@@ -207,11 +207,13 @@ const { config, currentPath } = Astro.props;
|
|
|
207
207
|
function open() {
|
|
208
208
|
overlay?.classList.remove("hidden");
|
|
209
209
|
menu?.classList.remove("translate-x-full");
|
|
210
|
+
document.body.style.overflow = "hidden";
|
|
210
211
|
}
|
|
211
212
|
|
|
212
213
|
function shut() {
|
|
213
214
|
overlay?.classList.add("hidden");
|
|
214
215
|
menu?.classList.add("translate-x-full");
|
|
216
|
+
document.body.style.overflow = "";
|
|
215
217
|
}
|
|
216
218
|
|
|
217
219
|
toggle?.addEventListener("click", open);
|