mirror of
https://github.com/discourse/discourse.git
synced 2026-07-29 23:58:12 -05:00
This reverts commit 76aeee6735.
Sadly this breaks on non-screen readers on Chrome and Safari
This commit is contained in:
@@ -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"));
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user