diff --git a/src/app/features/room/message/Message.tsx b/src/app/features/room/message/Message.tsx index a801934c3..34fb166ec 100644 --- a/src/app/features/room/message/Message.tsx +++ b/src/app/features/room/message/Message.tsx @@ -223,14 +223,25 @@ export const MessageAllReactionItem = as< handleClose(), clickOutsideDeactivates: true, escapeDeactivates: stopPropagation, }} > - + ( setViewer(false), clickOutsideDeactivates: true, escapeDeactivates: stopPropagation, }} > - +
{ (e.currentTarget as HTMLElement).style.top = '-40px'; }} + // #185 P1: following the fragment left focus on (the
target + // wasn't focusable), so screen readers announced nothing and the URL got + // a stray #main-content. Move focus to
explicitly instead. + onClick={(e) => { + e.preventDefault(); + document.getElementById('main-content')?.focus(); + }} > Skip to main content @@ -41,7 +48,7 @@ export function ClientLayout({ nav, children }: ClientLayoutProps) { {nav} - + {children} {bookmarksOpen && (