Patch Changes
-
2833337
#186 Thanks @clauderic! - SimplifyuseAnnouncement
hook to only return a singleannouncement
rather thanentries
. Similarly, theLiveRegion
component now only accepts a singleannouncement
rather than `entries.- The current strategy used in the useAnnouncement hook is needlessly complex. It's not actually necessary to render multiple announcements at once within the LiveRegion component. It's sufficient to render a single announcement at a time. It's also un-necessary to clean up the announcements after they have been announced, especially now that the role="status" attribute has been added to LiveRegion, keeping the last announcement rendered means users can refer to the last status.
-
Updated dependencies [
c24bdb3
,2833337
]:- @dnd-kit/accessibility@2.0.0