A11Y: Move focus to highlighted post when visiting a topic (#15236)

Meta topic: https://meta.discourse.org/t/discourse-with-a-screen-reader/178105/87?u=osama.
This commit is contained in:
Osama Sayegh 2021-12-08 21:33:15 +03:00 committed by GitHub
parent 4e8983036a
commit aec9ce9819
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -134,6 +134,7 @@ export function highlightPost(postNumber) {
element.removeEventListener("animationend", removeHighlighted); element.removeEventListener("animationend", removeHighlighted);
}; };
element.addEventListener("animationend", removeHighlighted); element.addEventListener("animationend", removeHighlighted);
container.querySelector(".tabLoc").focus();
} }
export function emailValid(email) { export function emailValid(email) {