From 8996cef6487c7003b210994b76202f6ae6798e69 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Mon, 13 Feb 2023 10:00:53 +0100 Subject: [PATCH 1/2] MOBILE-4069 a11y: Remove unneeded aria-labelledby With the latest Ionic update, these aria-labelledby aren't needed and one of them even caused a behat test to fail --- .../forum/pages/new-discussion/new-discussion.html | 8 ++++---- src/addons/mod/glossary/pages/edit/edit.html | 11 +++++------ src/addons/mod/lesson/pages/player/player.html | 8 +++----- .../mod/lesson/pages/user-retake/user-retake.html | 5 ++--- .../components/index/addon-mod-survey-index.html | 5 ++--- .../components/group-selector/group-selector.html | 5 ++--- .../components/group-selector/group-selector.ts | 14 ++------------ .../login/pages/email-signup/email-signup.html | 5 ++--- 8 files changed, 22 insertions(+), 39 deletions(-) diff --git a/src/addons/mod/forum/pages/new-discussion/new-discussion.html b/src/addons/mod/forum/pages/new-discussion/new-discussion.html index f403daa71..205501ce7 100644 --- a/src/addons/mod/forum/pages/new-discussion/new-discussion.html +++ b/src/addons/mod/forum/pages/new-discussion/new-discussion.html @@ -46,10 +46,10 @@ - {{ 'addon.mod_forum.group' | translate }} - + {{ 'addon.mod_forum.group' | translate }} + {{ group.name }} diff --git a/src/addons/mod/glossary/pages/edit/edit.html b/src/addons/mod/glossary/pages/edit/edit.html index f943c19e3..8850c93d3 100644 --- a/src/addons/mod/glossary/pages/edit/edit.html +++ b/src/addons/mod/glossary/pages/edit/edit.html @@ -28,11 +28,11 @@ - + {{ 'addon.mod_glossary.categories' | translate }} - {{ category.name }} @@ -40,11 +40,10 @@ - + {{ 'addon.mod_glossary.aliases' | translate }} - + diff --git a/src/addons/mod/lesson/pages/player/player.html b/src/addons/mod/lesson/pages/player/player.html index da29653c9..9613763db 100644 --- a/src/addons/mod/lesson/pages/player/player.html +++ b/src/addons/mod/lesson/pages/player/player.html @@ -138,14 +138,12 @@

- +

- + {{option.label}} diff --git a/src/addons/mod/lesson/pages/user-retake/user-retake.html b/src/addons/mod/lesson/pages/user-retake/user-retake.html index 41e59c571..46392fcec 100644 --- a/src/addons/mod/lesson/pages/user-retake/user-retake.html +++ b/src/addons/mod/lesson/pages/user-retake/user-retake.html @@ -27,9 +27,8 @@ - {{ 'addon.mod_lesson.attemptheader' | translate }} - {{ 'addon.mod_lesson.attemptheader' | translate }} + {{retake.label}} diff --git a/src/addons/mod/survey/components/index/addon-mod-survey-index.html b/src/addons/mod/survey/components/index/addon-mod-survey-index.html index a8aa106d4..94418bb86 100644 --- a/src/addons/mod/survey/components/index/addon-mod-survey-index.html +++ b/src/addons/mod/survey/components/index/addon-mod-survey-index.html @@ -102,13 +102,12 @@ - + {{question.num}}. {{ question.text }} - + diff --git a/src/core/components/group-selector/group-selector.html b/src/core/components/group-selector/group-selector.html index 3c667d8ea..8febfda04 100644 --- a/src/core/components/group-selector/group-selector.html +++ b/src/core/components/group-selector/group-selector.html @@ -7,12 +7,11 @@ - + {{'core.groupsseparate' | translate }} {{'core.groupsvisible' | translate }} - {{groupOpt.name}} diff --git a/src/core/components/group-selector/group-selector.ts b/src/core/components/group-selector/group-selector.ts index b98b5ec5e..2365e3ffe 100644 --- a/src/core/components/group-selector/group-selector.ts +++ b/src/core/components/group-selector/group-selector.ts @@ -12,9 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -import { Component, Input, Output, EventEmitter, OnInit, ChangeDetectionStrategy } from '@angular/core'; +import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy } from '@angular/core'; import { CoreGroupInfo } from '@services/groups'; -import { CoreUtils } from '@services/utils/utils'; /** * Component to display a group selector. @@ -24,20 +23,11 @@ import { CoreUtils } from '@services/utils/utils'; templateUrl: 'group-selector.html', changeDetection: ChangeDetectionStrategy.OnPush, }) -export class CoreGroupSelectorComponent implements OnInit { +export class CoreGroupSelectorComponent { @Input() groupInfo?: CoreGroupInfo; @Input() multipleGroupsMessage?: string; @Input() selected!: number; @Output() selectedChange = new EventEmitter(); - id!: number; - - /** - * @inheritdoc - */ - ngOnInit(): void { - this.id = CoreUtils.getUniqueId('CoreGroupSelectorComponent'); - } - } diff --git a/src/core/features/login/pages/email-signup/email-signup.html b/src/core/features/login/pages/email-signup/email-signup.html index fa5eed501..0fa136230 100644 --- a/src/core/features/login/pages/email-signup/email-signup.html +++ b/src/core/features/login/pages/email-signup/email-signup.html @@ -159,9 +159,8 @@ - {{ 'core.user.country' | translate }} - + {{ 'core.user.country' | translate }} + {{ 'core.login.selectacountry' | translate }} {{country.name}} From 3dd333243b76658ed85750d14c31263ab9d93092 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Mon, 13 Feb 2023 11:56:53 +0100 Subject: [PATCH 2/2] MOBILE-4069 behat: Increase Docker PHP version --- .github/workflows/acceptance.yml | 2 +- .github/workflows/performance.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/acceptance.yml b/.github/workflows/acceptance.yml index d8ff19c9d..b2df84a3d 100644 --- a/.github/workflows/acceptance.yml +++ b/.github/workflows/acceptance.yml @@ -26,7 +26,7 @@ jobs: env: MOODLE_DOCKER_DB: pgsql MOODLE_DOCKER_BROWSER: chrome - MOODLE_DOCKER_PHP_VERSION: 7.4 + MOODLE_DOCKER_PHP_VERSION: '8.0' MOODLE_BRANCH: ${{ github.event.inputs.moodle_branch || 'master' }} MOODLE_REPOSITORY: ${{ github.event.inputs.moodle_repository || 'https://github.com/moodle/moodle' }} BEHAT_TAGS: ${{ github.event.inputs.behat_tags || '~@performance' }} diff --git a/.github/workflows/performance.yml b/.github/workflows/performance.yml index 746a6c38a..47e3fbf71 100644 --- a/.github/workflows/performance.yml +++ b/.github/workflows/performance.yml @@ -8,7 +8,7 @@ jobs: env: MOODLE_DOCKER_DB: pgsql MOODLE_DOCKER_BROWSER: chrome - MOODLE_DOCKER_PHP_VERSION: 7.4 + MOODLE_DOCKER_PHP_VERSION: '8.0' steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v3