diff --git a/CHANGELOG.md b/CHANGELOG.md index b102d0c6..1fdb9bf3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,13 +9,12 @@ and this project adheres to ## [Unreleased] ### Changed -- 📝(frontend) document focus management pattern for side panels and menus +- ♿(frontend) improve menu focus management #869 - ♿️(frontend) add accessible back button in side panel #881 - ♿️(frontend) improve participants toggle a11y label #880 - ♿️(frontend) make carousel image decorative #871 - ♿️(frontend) reactions are now vocalized and configurable #849 - ♿️(frontend) improve background effect announcements #879 -- ♿(frontend) improve menu focus management #869 ### Fixed diff --git a/src/frontend/README.md b/src/frontend/README.md index 7e12a02e..677e7f76 100644 --- a/src/frontend/README.md +++ b/src/frontend/README.md @@ -57,6 +57,7 @@ useRestoreFocus(isOpen, { const first = panelRef.current?.querySelector( '[data-attr="tools-list"] button' ) + // Leading semicolon avoids ASI issues when a line starts with '(' ;(first as HTMLElement | null)?.focus({ preventScroll: true }) }, })