Closed streamich closed 6 years ago
Shouldn't it do
<OverlayProvider>
<App />
</OverlayProvider>
@azukaar yeah, could be.
@azukaar I have extracted interface creation in a separate lib:
Actually, maybe better create <Modal>
component that uses <Overlay>
internally, and <ModalManager>
instead of <OverlayProvider>
.
Created <Modal>
for now instead, here: https://github.com/MailOnline/libreact/pull/38
Add an optional
<OverlayProvider>
component that will work together with<Overlay>
component to provide better experience. It would we be a render prop that injectsdisabled
prop into its child<App>
component.This would allow
<App>
to set properly:aria-hidden
pointer-events: none
Maybe also create generic
<App>
component that does all of that.