Skip to content

v3.0.0

Compare
Choose a tag to compare
@rynpsc rynpsc released this 21 Jun 10:19
· 27 commits to master since this release

Added

  • Added basic data attribute API.
  • Added ability to cancel opening and closing via event.preventDefault.
  • Added initiated property to dialog instance.

Changed

  • Now uses aria-modal="true" and aligns with WAI-ARIA Authoring Practices 1.1.
  • Events now use the native CustomEvent API.
  • Event names are now prefixed with dialog:.
  • No longer provides a default export, use import { dialog } from @rynpsc/dialog instead.

Removed

  • Removed main parameter from constructor.
  • Removed autoInit option, dialogs must now be manually created with create().
  • Removed focus option, autofocus element should now be defined using the data-dialog-autofocus attribute.