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:
parent
4e8983036a
commit
aec9ce9819
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue