Skip to content

7.0.0

Compare
Choose a tag to compare
@KittyGiraudel KittyGiraudel released this 23 Mar 13:36
· 1113 commits to main since this release

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 the open 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 with aria-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).