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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.element.classList.add("highlighted");
|
const $topic = $(this.element);
|
||||||
this.element.setAttribute(
|
$topic
|
||||||
"data-islastviewedtopic",
|
.addClass("highlighted")
|
||||||
opts.isLastViewedTopic
|
.attr("data-islastviewedtopic", opts.isLastViewedTopic);
|
||||||
);
|
|
||||||
this.element.querySelector(".main-link .title").focus();
|
|
||||||
|
|
||||||
this.element.addEventListener("animationend", () => {
|
$topic.on("animationend", () => $topic.removeClass("highlighted"));
|
||||||
this.element.classList.remove("highlighted");
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue