Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

Blue - v0.0.56

Compare
Choose a tag to compare
@ItsJonQ ItsJonQ released this 22 Nov 16:07
· 3041 commits to main since this release

PortalWrapper: Remove body lock

This update removes the document.body.style.overflow: hidden approach,
which was previously used as an attempt to scroll lock the body
if components like Modals were open.

However, this approach has side effects, such as if Modals were
used within an iframe.

A couple of updates back, we introduced a new component called
<ScrollLock> (thanks @alisdair ! ❤️ ),
which has been built into <Scrollable>, and indirectly, <Modal>, that magically
remedies these issues.

Modal and PortalWrapper components have been updated to remove
any trace of body locking, and the tests have been updated to match.

No changes are required for Blue users!

Addresses: #118