fix: SW-1010 Fixed low screen height accessibility issue

This commit is contained in:
Hrishikesh Vaipurkar
2024-11-26 23:32:14 +01:00
parent 8a0ba71bc7
commit bf60306236
8 changed files with 61 additions and 8 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
export default function useSetOverflowVisibleOnRA() {
export default function useSetOverflowVisibleOnRA(isNestedInModal: boolean) {
function setOverflowVisible(isOpen: boolean) {
if (isOpen) {
document.body.style.overflow = "visible"
} else {
} else if (!isNestedInModal) {
document.body.style.overflow = ""
}
}