This is a complete overhaul of the plugin, based on extensive feedback and testing in screen readers. Some breaking changes have been made to improve the defaults. If you haven't customized the plugin options, it's safe to upgrade, otherwise please consult the readme.
- Rethink announcements: use assertive live region and announce after a delay (@ScoobyDid)
- Focus
body
on navigation instead ofmain
- Only use
h1
for announcements by default, ignoreh2
- Disable animations by default if users prefer reduced motion
- Correctly exclude
inert
elements from autofocus - Tested in VoiceOver, JAWS and NVDA