Skip to content

Commit

Permalink
MDL-67663 mod_forum: Designate forum grading landmark regions
Browse files Browse the repository at this point in the history
Adding the following landmark regions for easier keyboard navigation:
* Forum grading navigation
* User's forum posts
* Forum grading panel
  • Loading branch information
junpataleta committed Apr 9, 2020
1 parent a37c40d commit 5803df2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions mod/forum/lang/en/forum.php
Expand Up @@ -299,6 +299,8 @@
$string['forum:exportforum'] = 'Export forum';
$string['forum:exportownpost'] = 'Export own post';
$string['forum:exportpost'] = 'Export post';
$string['forumgradingnavigation'] = 'Forum grading navigation';
$string['forumgradingpanel'] = 'Forum grading panel';
$string['forumintro'] = 'Description';
$string['forum:managesubscriptions'] = 'Manage subscribers';
$string['forum:movediscussions'] = 'Move discussions';
Expand Down Expand Up @@ -729,6 +731,7 @@
$string['useexperimentalui'] = 'Use experimental nested discussion view';
$string['usermarksread'] = 'Manual message read marking';
$string['usernavigation'] = 'User navigation';
$string['usersforumposts'] = 'User\'s forum posts';
$string['unpindiscussion'] = 'Unpin this discussion';
$string['viewalldiscussions'] = 'View all discussions';
$string['viewparentpost'] = 'View parent post';
Expand Down
Expand Up @@ -30,7 +30,7 @@
{
}
}}
<div class="grader-module-content w-100 h-100" data-region="module_content_container">
<div class="grader-module-content w-100 h-100" data-region="module_content_container" role="region" aria-label="{{#str}} usersforumposts, mod_forum {{/str}}">
<div data-region="module_content" class="grader-module-content-display">
{{> mod_forum/local/grades/local/grader/module_content_placeholder }}
</div>
Expand Down
Expand Up @@ -36,7 +36,7 @@
{{$drawerid}}grading-drawer-{{uniqid}}{{/drawerid}}
{{$drawerclasses}}grader-grading-panel flex-shrink-0{{/drawerclasses}}
{{$drawercontent}}
<div class="h-100 w-100 bg-white d-flex flex-column">
<div class="h-100 w-100 bg-white d-flex flex-column" role="region" aria-label="{{#str}} forumgradingpanel, mod_forum {{/str}}">
<div class="flex-shrink-0 d-flex flex-column">
<div class="header-container bg-light">
<div class="info-container d-flex align-items-center">
Expand Down
Expand Up @@ -34,7 +34,7 @@
"moduleName": "Chef the Forum"
}
}}
<nav id="nav-container-{{uniqid}}" class="grader-grading_navigation navbar">
<nav id="nav-container-{{uniqid}}" class="grader-grading_navigation navbar" aria-label="{{#str}} forumgradingnavigation, mod_forum {{/str}}">
<div class="d-none d-sm-flex align-items-center">
<a href="{{{courseUrl}}}" class="btn btn-link px-2 colour-inherit">
<h5 class="d-inline px-0 mb-0">{{courseName}}</h5>
Expand Down

0 comments on commit 5803df2

Please sign in to comment.