the 31st of March, 2018
Multiples updates on accessible modal script
As kindly suggested by @codemusket, it was not possible to specify on which element the focus has to be given, once it is launched.
I've just added this feature, it is now possible to specify the id
of the element in the modal you want to give the focus to, using the attribute data-modal-focus-toid
when loading the modal (closing button if not specified).
The update has been published one hour ago on Github/NPM (see Github repositery of Van11y modal).
In addition to this: a new example of demo using CSS transforms has been added, and a fix for WebPack users has also been added.
Thanks again for this idea of feature!