Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Conditionally enable aria-live region for the timeline scroll pannel
(fixes element-hq/element-web#5696 and element-hq/element-web#5697) We only wish to set aria-live to polite when the list is scrolled to the bottom to avoid flooding screen readers with loads of DOM changes when scrolling causing presentation of random message events. To avoid presenting outgoing events twice we are only setting aria-live when there is a new content to add so e.g. style changes and similar won't be propagated to assistive tools.
- Loading branch information