- Harmonize
on:open
/on:opening
andon:close
/on:closing
event (#33 and #34). Note,on:opening
andon:closing
are still being dispatched for backward compatibility but they will be remove in future versions so please switch over toon:open
andon:close
.
- Disable body scrolling while modal is open (#31 -> #28)
- Fixed a visual glitch where previously customized styles were not reset
- Added
<Modal show={PopupComponent} />
as an alternative to other the context API (#22)
- Replace too strict
isSvelteComponent
withisFunction
(#27)
- Dispatch open, opened, close, and closed events (#25)
- Allow customizing the window wrapper via
styleWindowWrap
(#24)
- Fall back gracefully for older versions of Svelte (
<3.19
) whenSvelteComponent
for the custom close button is not available (#21)
- Allow customizing the close button (#20)
- Trap focus in modal (#17)
- Add
aria
information
- Explicitly expose the
event
object (#13)
- Remove wrapping
div
element as it's not necessary (#12)
- Add support for transition event callbacks via
open(..., ..., ..., { onOpen, onOpened, onClose, onClosed })
)
- Fix non-reactive component (#11)
- Allow to specify instance-specific options via
open(Component, componentProps, options)
)
- Update
package-lock.json
file
- Set backgroupd position to
top: 0
andleft: 0
by default thanks to flekschas#5
- Allow customizing the modal style on
open(Component, props, styling)
. This can be used for content-aware theming.
- Robustify overflow
- First release