mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 13:03:39 +08:00
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.addEventListener("animationend", removeHighlighted);
|
||||
container.querySelector(".tabLoc").focus();
|
||||
}
|
||||
|
||||
export function emailValid(email) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user