a11y-dialog

A very lightweight and flexible accessible modal dialog script.

MIT License

Downloads
235.9K
Stars
2.4K
Committers
33

Bot releases are hidden (Show)

a11y-dialog - 4.0.1

Published by KittyGiraudel almost 7 years ago

  • Add license key to package.json (37155b2605383f76bdedca30814a7051c32b7692)
a11y-dialog - 4.0.0

Published by KittyGiraudel about 7 years ago

  • No longer pass event.target as second argument of events (#75)
  • No longer pass event.currentTarget as third argument of events (#75)
  • Now pass event (whole object) as second argument of events (#75)
a11y-dialog - 3.1.0

Published by KittyGiraudel about 7 years ago

  • Pass event.currentTarget as third argument to all events (#74)
a11y-dialog - 3.0.2

Published by KittyGiraudel about 7 years ago

  • Fixed incorrect tabindex value for dialog title in documentation (#64)

⚠️ Important update

Prior to 3.0.2, a11y-dialog recommended to add tabindex="0" to the dialog title so that it can be focused by the script on dialog opening, in order to avoid jumping directly to an element further down within the dialog. This constitues a WCAG violation under Focus Order.

Version 3.0.2 now recommends you put the close button first so it can be focused right away, and remove tabindex="0" from the title element.

a11y-dialog - 3.0.1

Published by KittyGiraudel about 7 years ago

  • Fixed global context to ensure platform compatibility (#72)
a11y-dialog - 3.0.0

Published by KittyGiraudel over 7 years ago

  • Main element no longer assumed (breaking)
  • Events no longer DOM based (breaking)
  • New events callback signature (breaking)
  • Lack of initial aria-hidden="true" now safe (possibly breaking)
  • New .create() method
  • Method chaining now possible
  • New test suite
  • Library entirely rewritten with inline comments + JSDoc
  • Reworked documentation

PR: https://github.com/edenspiekermann/a11y-dialog/pull/62.
Intro: http://hugogiraudel.com/2017/01/30/introducing-a11y-dialog-v3/.
Credits: thanks to Mike Smart & Loïc Giraudel.

a11y-dialog - 2.5.7

Published by KittyGiraudel almost 8 years ago

a11y-dialog - 2.5.5

Published by KittyGiraudel almost 8 years ago

a11y-dialog - 2.5.4

Published by KittyGiraudel almost 8 years ago

  • Fixed an issue with Custom Events not working anymore since 2.5.3
a11y-dialog - 2.5.3

Published by KittyGiraudel almost 8 years ago

  • Fixed a reference to the global object which prevented the module from loading on the server
a11y-dialog - 2.5.2

Published by KittyGiraudel about 8 years ago

a11y-dialog - 2.5.1

Published by KittyGiraudel about 8 years ago

a11y-dialog - 2.5.0

Published by KittyGiraudel about 8 years ago

  • Added a destroy method to hide and unbind all events from the dialog (#54)
a11y-dialog - 2.4.1

Published by KittyGiraudel about 8 years ago

  • Only add keydown event listener to document when dialog is open, remove it when closed (#52)
a11y-dialog - 2.4.0

Published by KittyGiraudel about 8 years ago

  • The toggle element is now passed down to the event as event.detail (#53)
a11y-dialog - 2.3.3

Published by KittyGiraudel about 8 years ago

  • Added minified file to published package (#51)
a11y-dialog - 2.3.2

Published by KittyGiraudel about 8 years ago

  • Fixed an issue with CustomEvent in Internet Explorer (#50)
a11y-dialog - 2.3.1

Published by KittyGiraudel about 8 years ago

  • Added polyfill for CustomEvent for Internet Explorer (#48)
a11y-dialog - 2.3.0

Published by KittyGiraudel over 8 years ago

  • Added dialog:show and dialog:hide DOM events to dialogs (#41, #42)
a11y-dialog - 2.2.0

Published by KittyGiraudel over 8 years ago

  • Made the module AMD compliant (577df3389c124d9b7598f5e5f0ea45fdea53ae8b)