Skip to content

Commit

Permalink
SAK-50552 Assignments: Improving Visual Navigation in 'Assignments by…
Browse files Browse the repository at this point in the history
… Student' View (sakaiproject#12936)
  • Loading branch information
st-manu authored Oct 1, 2024
1 parent a172c3c commit cccdc0c
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,15 @@
document.querySelector(".sakai-table-toolBar").classList.add("hidden");
#end
#if ($expandedUserId)
document.getElementById("$expandedUserId").scrollIntoView({ behavior: "instant", block: "center" });
const element = document.getElementById("$expandedUserId");
element.scrollIntoView({ behavior: "instant", block: "center" });
const rowElement = element.closest("tr.dtrg-level-0");
rowElement.focus();
rowElement.style.transition = "background-color 1s ease";
rowElement.style.backgroundColor = "var(--sakai-active-color-1)";
setTimeout(() => {
rowElement.style.backgroundColor = "";
}, 2000);
#end
});
</script>
Expand Down

0 comments on commit cccdc0c

Please sign in to comment.