From 83fc577ccd226d29296792f17f362f07ed9c72b4 Mon Sep 17 00:00:00 2001 From: konnorrogers Date: Tue, 23 Jul 2024 12:35:31 -0400 Subject: [PATCH] prettier --- docs/pages/resources/changelog.md | 2 +- src/internal/scroll.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/pages/resources/changelog.md b/docs/pages/resources/changelog.md index 1b82cc25..9d89e8e0 100644 --- a/docs/pages/resources/changelog.md +++ b/docs/pages/resources/changelog.md @@ -1761,4 +1761,4 @@ The following pages demonstrate why this change was necessary. ## 2.0.0-beta.1 -- Initial release \ No newline at end of file +- Initial release diff --git a/src/internal/scroll.ts b/src/internal/scroll.ts index 768a8c1d..2d0995a3 100644 --- a/src/internal/scroll.ts +++ b/src/internal/scroll.ts @@ -44,7 +44,7 @@ export function lockBodyScrolling(lockingEl: HTMLElement) { /** Sometimes the scrollbar width is 1px, even then, we assume nothing is overflowing. */ if (scrollbarWidth < 2) { // if there's no scrollbar, just set it to an empty string so whatever the user has set gets used. This is useful if the page is not overflowing and showing a scrollbar, or if the user has overflow: hidden, or any other reason a scrollbar may not be showing. - scrollbarGutterProperty = "" + scrollbarGutterProperty = ''; } document.documentElement.style.setProperty('--sl-scroll-lock-gutter', scrollbarGutterProperty); document.documentElement.classList.add('sl-scroll-lock');