A very lightweight and flexible accessible modal dialog script.
MIT License
Bot releases are hidden (Show)
Published by KittyGiraudel almost 7 years ago
license
key to package.json (37155b2605383f76bdedca30814a7051c32b7692)Published by KittyGiraudel about 7 years ago
event.target
as second argument of events (#75)event.currentTarget
as third argument of events (#75)event
(whole object) as second argument of events (#75)Published by KittyGiraudel about 7 years ago
event.currentTarget
as third argument to all events (#74)Published by KittyGiraudel about 7 years ago
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.
Published by KittyGiraudel about 7 years ago
Published by KittyGiraudel over 7 years ago
.create()
methodPR: 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.
Published by KittyGiraudel almost 8 years ago
Published by KittyGiraudel almost 8 years ago
Published by KittyGiraudel almost 8 years ago
Published by KittyGiraudel almost 8 years ago
Published by KittyGiraudel about 8 years ago
Published by KittyGiraudel about 8 years ago
shown
attribute not returning the correct value on load if the dialog is displayed (https://github.com/edenspiekermann/a11y-dialog/commit/dbcff939e84b326d7294a33a9f6557c75f24603e)Published by KittyGiraudel about 8 years ago
destroy
method to hide and unbind all events from the dialog (#54)Published by KittyGiraudel about 8 years ago
keydown
event listener to document
when dialog is open, remove it when closed (#52)Published by KittyGiraudel about 8 years ago
event.detail
(#53)Published by KittyGiraudel about 8 years ago
Published by KittyGiraudel about 8 years ago
Published by KittyGiraudel about 8 years ago
CustomEvent
for Internet Explorer (#48)Published by KittyGiraudel over 8 years ago
dialog:show
and dialog:hide
DOM events to dialogs (#41, #42)Published by KittyGiraudel over 8 years ago