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

View File

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