7.0.0
Version 7 of a11y-dialog
aims at reducing complexity, both in terms of implementation, but also in terms of usage.
It is not backward compatible with version 6 (hence the major version bump). The update should not be overly difficult, but requires development work. Read the migration guide.
-
[Breaking] Drop support for the native
<dialog>
element (and theopen
HTML attribute). It is inconsistent, and already actively discouraged in the documentation. There is a lot of logic around supporting its side-effects which we would be better off. (#158, #163) -
[Breaking] Use
aria-modal="true"
to no longer make the main content container(s) inert witharia-hidden="true"
. This significantly reduces the markup expectations and limit the risks of passing the incorrect main content container(s) to the library since it no longer needs them. (#155, #164)
As a result, using a11y-dialog
should become significantly easier, and the script size dropped ~20% (now around 1.3Kb).