MDL-70829 block_recentlyaccesseditems: Move listitem role out of <a>
commitfac456676f49992599b3e80df139a91d1cc4e284
authorJun Pataleta <jun@moodle.com>
Mon, 18 Mar 2024 13:26:07 +0000 (18 21:26 +0800)
committerJun Pataleta <jun@moodle.com>
Fri, 12 Apr 2024 03:17:29 +0000 (12 11:17 +0800)
treef4b40399a13f53895d3dee5c26b1a5cb37d1c612
parent582b55df77f7bfb90d2975b2479cfba5378cbec6
MDL-70829 block_recentlyaccesseditems: Move listitem role out of <a>

* Axe DevTools flags an error on the recently accessed items block that
the listitem role is not allowed for <a> tags. This is because the
"listitem" role will override the native semantic meaning of the course
links. So the solution is to move the course links within a <div> tag
with the listitem role instead.
blocks/recentlyaccesseditems/templates/view-cards.mustache