mirror of
https://github.com/discourse/discourse.git
synced 2025-03-23 08:15:41 +08:00
This reverts commit 76aeee6735ea06302dd9c09cf2bd2ce0e01e827e. Sadly this breaks on non-screen readers on Chrome and Safari
This commit is contained in:
parent
38e17ab106
commit
15752da957
@ -245,16 +245,12 @@ export default Component.extend({
|
||||
return;
|
||||
}
|
||||
|
||||
this.element.classList.add("highlighted");
|
||||
this.element.setAttribute(
|
||||
"data-islastviewedtopic",
|
||||
opts.isLastViewedTopic
|
||||
);
|
||||
this.element.querySelector(".main-link .title").focus();
|
||||
const $topic = $(this.element);
|
||||
$topic
|
||||
.addClass("highlighted")
|
||||
.attr("data-islastviewedtopic", opts.isLastViewedTopic);
|
||||
|
||||
this.element.addEventListener("animationend", () => {
|
||||
this.element.classList.remove("highlighted");
|
||||
});
|
||||
$topic.on("animationend", () => $topic.removeClass("highlighted"));
|
||||
});
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user