@kaizen/component-library
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -87,6 +87,8 @@ "use strict"; | ||
GenericModal.prototype.preventBodyScroll = function () { | ||
document.documentElement.classList.add(styles.unscrollable); | ||
var _a; | ||
var hasScrollbar = window.innerWidth > document.documentElement.clientWidth; | ||
(_a = document.documentElement.classList).add.apply(_a, [styles.unscrollable, hasScrollbar && styles.pseudoScrollbar]); | ||
}; | ||
GenericModal.prototype.restoreBodyScroll = function () { | ||
document.documentElement.classList.remove(styles.unscrollable); | ||
document.documentElement.classList.remove(styles.unscrollable, styles.pseudoScrollbar); | ||
}; | ||
@@ -93,0 +95,0 @@ GenericModal.prototype.ensureAccessiblityIsMet = function () { |
@@ -25,3 +25,3 @@ { | ||
"sideEffects": false, | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"private": false, | ||
@@ -59,3 +59,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "048abecd3f79a6895a4673743eb73f3ff30e619a" | ||
"gitHead": "3e22c6333c666627071220f0237ce8ca8c1c5338" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1546112
4995