Revert "A11Y: Focus last viewed topic in topic lists (#15300)" (#15304)

This reverts commit 76aeee6735.

Sadly this breaks on non-screen readers on Chrome and Safari
This commit is contained in:
Sam 2021-12-15 12:33:33 +11:00 committed by GitHub
parent 38e17ab106
commit 15752da957
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"));
});
},