From d8fa2142eaee3cb7e1af36b1c04664843bfe7714 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Mon, 3 May 2021 10:08:20 +0200 Subject: [PATCH] MOBILE-3744 splitview: Change selected item to aria-current attribute --- src/addons/badges/pages/user-badges/user-badges.html | 4 ++-- src/addons/calendar/pages/list/list.html | 3 ++- .../competency/pages/competencies/competencies.html | 2 +- src/addons/competency/pages/planlist/planlist.html | 2 +- src/addons/messages/pages/contacts-35/contacts.html | 2 +- src/addons/messages/pages/contacts/contacts.html | 4 ++-- .../messages/pages/discussions-35/discussions.html | 4 ++-- .../pages/group-conversations/group-conversations.html | 4 ++-- src/addons/messages/pages/search/search.html | 2 +- .../assign/pages/submission-list/submission-list.html | 2 +- src/addons/mod/book/components/toc/toc.html | 2 +- src/addons/mod/chat/pages/sessions/sessions.html | 2 +- .../mod/feedback/pages/respondents/respondents.html | 4 ++-- src/addons/mod/forum/components/index/index.html | 2 +- .../sort-order-selector/sort-order-selector.html | 6 +++--- .../components/index/addon-mod-glossary-index.html | 5 +++-- src/addons/mod/imscp/components/toc/toc.html | 2 +- .../mod/lesson/components/menu-modal/menu-modal.html | 2 +- .../components/navigation-modal/navigation-modal.html | 2 +- src/addons/mod/scorm/components/toc/toc.html | 2 +- src/addons/mod/wiki/components/map/map.html | 2 +- .../subwiki-picker/addon-mod-wiki-subwiki-picker.html | 2 +- src/addons/mod/workshop/components/phase/phase.html | 2 +- src/core/classes/page-items-list-manager.ts | 10 ++++++++++ .../components/section-selector/section-selector.html | 2 +- src/core/features/grades/pages/course/course.html | 2 +- src/core/features/grades/pages/course/course.scss | 4 ++-- src/core/features/grades/pages/courses/courses.html | 2 +- src/core/features/settings/pages/index/index.html | 2 +- src/core/features/settings/pages/site/site.html | 2 +- .../settings/pages/space-usage/space-usage.html | 2 +- .../pages/synchronization/synchronization.html | 2 +- src/core/features/tag/pages/index/index.html | 2 +- .../features/user/pages/participants/participants.html | 2 +- src/theme/theme.base.scss | 7 ++----- 35 files changed, 56 insertions(+), 47 deletions(-) diff --git a/src/addons/badges/pages/user-badges/user-badges.html b/src/addons/badges/pages/user-badges/user-badges.html index 64229acbb..cb0b04f47 100644 --- a/src/addons/badges/pages/user-badges/user-badges.html +++ b/src/addons/badges/pages/user-badges/user-badges.html @@ -17,8 +17,8 @@ - + diff --git a/src/addons/calendar/pages/list/list.html b/src/addons/calendar/pages/list/list.html index d3b47c8ae..51c339400 100644 --- a/src/addons/calendar/pages/list/list.html +++ b/src/addons/calendar/pages/list/list.html @@ -43,7 +43,8 @@ {{ event.timestart * 1000 | coreFormatDate: "strftimedayshort" }} + [attr.aria-current]="event.id == eventId ? 'page' : 'false'" + [ngClass]="['addon-calendar-eventtype-'+event.eventtype]"> + [attr.aria-current]="competencies.getItemAriaCurrent(competency)">

{{ competency.competency.shortname }} {{competency.competency.idnumber}}

diff --git a/src/addons/competency/pages/planlist/planlist.html b/src/addons/competency/pages/planlist/planlist.html index f4b32b223..6293d9d48 100644 --- a/src/addons/competency/pages/planlist/planlist.html +++ b/src/addons/competency/pages/planlist/planlist.html @@ -17,7 +17,7 @@ + [attr.aria-current]="plans.getItemAriaCurrent(plan)">

{{ plan.name }}

diff --git a/src/addons/messages/pages/contacts-35/contacts.html b/src/addons/messages/pages/contacts-35/contacts.html index c4eab56bd..6dbe14d65 100644 --- a/src/addons/messages/pages/contacts-35/contacts.html +++ b/src/addons/messages/pages/contacts-35/contacts.html @@ -39,7 +39,7 @@ + [attr.aria-current]="contact.id == discussionUserId ? 'page' : 'false'">

{{ contact.fullname }}

diff --git a/src/addons/messages/pages/contacts/contacts.html b/src/addons/messages/pages/contacts/contacts.html index e80cd7637..f491ffb2b 100644 --- a/src/addons/messages/pages/contacts/contacts.html +++ b/src/addons/messages/pages/contacts/contacts.html @@ -28,7 +28,7 @@ + (click)="selectUser(contact.id)" [attr.aria-current]="contact.id == selectedUserId ? 'page' : 'false'"> @@ -65,7 +65,7 @@ + [attr.aria-current]="request.id == selectedUserId ? 'page' : 'false'" detail> diff --git a/src/addons/messages/pages/discussions-35/discussions.html b/src/addons/messages/pages/discussions-35/discussions.html index 68f7cbabc..5598649a0 100644 --- a/src/addons/messages/pages/discussions-35/discussions.html +++ b/src/addons/messages/pages/discussions-35/discussions.html @@ -40,7 +40,7 @@ + [attr.aria-current]="result.userid == discussionUserId ? 'page' : 'false'">

{{ result.fullname }}

@@ -52,7 +52,7 @@ + [attr.aria-current]="discussion.message!.user == discussionUserId ? 'page' : 'false'">

{{ discussion.fullname }}

diff --git a/src/addons/messages/pages/group-conversations/group-conversations.html b/src/addons/messages/pages/group-conversations/group-conversations.html index 386bb41f2..a89bc0a34 100644 --- a/src/addons/messages/pages/group-conversations/group-conversations.html +++ b/src/addons/messages/pages/group-conversations/group-conversations.html @@ -108,8 +108,8 @@ diff --git a/src/addons/messages/pages/search/search.html b/src/addons/messages/pages/search/search.html index c76172382..2ff576337 100644 --- a/src/addons/messages/pages/search/search.html +++ b/src/addons/messages/pages/search/search.html @@ -43,7 +43,7 @@ + (click)="openConversation(result)" [attr.aria-current]="result == selectedResult ? 'page' : 'false'" detail>

diff --git a/src/addons/mod/assign/pages/submission-list/submission-list.html b/src/addons/mod/assign/pages/submission-list/submission-list.html index 1f7c38d82..dd7bb62f2 100644 --- a/src/addons/mod/assign/pages/submission-list/submission-list.html +++ b/src/addons/mod/assign/pages/submission-list/submission-list.html @@ -40,7 +40,7 @@ + [attr.aria-current]="submissions.getItemAriaCurrent(submission)">

{{submission.userfullname}}

diff --git a/src/addons/mod/book/components/toc/toc.html b/src/addons/mod/book/components/toc/toc.html index 9a1e64faf..207737c4b 100644 --- a/src/addons/mod/book/components/toc/toc.html +++ b/src/addons/mod/book/components/toc/toc.html @@ -12,7 +12,7 @@