mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 12:53:42 +08:00
This reverts commit 76aeee6735
.
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…
Reference in New Issue
Block a user