Merge branch 'MDL-65577-master' of https://github.com/ryanwyllie/moodle

This commit is contained in:
Jun Pataleta 2019-05-15 13:47:26 +08:00
commit 38b3b6b264
2 changed files with 11 additions and 2 deletions

View File

@ -342,10 +342,19 @@ span.unread {
font-size: 80%;
}
.forum-post-container:focus {
outline: 0;
}
/* This style is copied directly from the Bootstrap reboot file which adds button outline */
/* stylelint-disable declaration-block-no-duplicate-properties */
.post-actions .btn:focus {
outline: 1px dotted;
outline: 5px auto -webkit-focus-ring-color;
}
.forum-post-container:focus > .focus-target {
outline: 1px dotted;
outline: 5px auto -webkit-focus-ring-color;
}
/* stylelint-enable declaration-block-no-duplicate-properties */

View File

@ -31,7 +31,7 @@
}}
<article
id="p{{id}}"
class="relativelink mb-2"
class="forum-post-container mb-2"
data-post-id="{{id}}"
data-region="post"
data-target="{{id}}-target"
@ -41,7 +41,7 @@
>
<!-- The firstpost and starter classes below aren't used for anything other than to identify the first post in behat -->
<div
class="d-flex border p-2 mb-2 forumpost {{#unread}}unread{{/unread}} {{#firstpost}}firstpost starter{{/firstpost}}"
class="d-flex border p-2 mb-2 forumpost focus-target {{#unread}}unread{{/unread}} {{#firstpost}}firstpost starter{{/firstpost}}"
aria-label='{{#str}} postbyuser, mod_forum, {"post": "{{subject}}", "user": "{{author.fullname}}"} {{/str}}'
data-post-id="{{id}}" data-content="forum-post"
>