MDL-67544 mod_forum: Correct aria-labelledby node

This commit is contained in:
Andrew Nicols 2019-12-18 13:40:41 +08:00
parent 17133749ab
commit 10999d33e5
2 changed files with 4 additions and 4 deletions

View File

@ -36,7 +36,7 @@
data-region="post"
data-target="{{id}}-target"
tabindex="0"
aria-labelledby="post-header-{{id}}"
aria-labelledby="post-header-{{id}}-{{uniqid}}"
aria-describedby="post-content-{{id}}"
>
{{! The firstpost and starter classes below aren't used for anything other than to identify the first post in behat. }}
@ -74,7 +74,7 @@
</div>
<div class="forum-post-core d-flex flex-column w-100" data-region-content="forum-post-core">
<header id="post-header-{{uniqid}}">
<header id="post-header-{{id}}-{{uniqid}}">
{{^isdeleted}}
<div class="d-flex flex-wrap align-items-center mb-1">
<address class="mb-0 mr-2" tabindex="-1">

View File

@ -36,7 +36,7 @@
data-region="post"
data-target="{{id}}-target"
tabindex="0"
aria-labelledby="post-header-{{id}}"
aria-labelledby="post-header-{{id}}-{{uniqid}}"
aria-describedby="post-content-{{id}}"
>
{{! The firstpost and starter classes below aren't used for anything other than to identify the first post in behat. }}
@ -48,7 +48,7 @@
{{#isfirstunread}}<a id="unread" aria-hidden="true"></a>{{/isfirstunread}}
<div class="d-flex flex-column w-100" data-region-content="forum-post-core">
<header class="mb-2 header row d-flex">
<header id="post-header-{{id}}-{{uniqid}}" class="mb-2 header row d-flex">
{{^isdeleted}}
{{#author}}
<div class="mr-2" style="width: 45px;">