From e7b61672f1d6d7d469bf604272e548e2c4757f24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Thu, 6 May 2021 10:56:20 +0200 Subject: [PATCH] MOBILE-3745 a11y: Use fill clear on top toolbar buttons --- src/addons/calendar/pages/day/day.html | 2 +- src/addons/calendar/pages/index/index.html | 2 +- src/addons/calendar/pages/list/list.html | 2 +- .../components/conversation-info/conversation-info.html | 2 +- src/addons/messages/pages/contacts/contacts.html | 2 +- .../pages/group-conversations/group-conversations.html | 2 +- .../components/edit-feedback-modal/edit-feedback-modal.html | 2 +- src/addons/mod/book/components/toc/toc.html | 2 +- src/addons/mod/chat/components/users-modal/users-modal.html | 2 +- src/addons/mod/chat/pages/chat/chat.html | 2 +- src/addons/mod/data/components/search/search.html | 2 +- src/addons/mod/forum/components/edit-post/edit-post.html | 2 +- .../components/sort-order-selector/sort-order-selector.html | 2 +- src/addons/mod/imscp/components/toc/toc.html | 2 +- src/addons/mod/lesson/components/menu-modal/menu-modal.html | 2 +- .../lesson/components/password-modal/password-modal.html | 2 +- src/addons/mod/lesson/pages/player/player.html | 2 +- .../quiz/components/navigation-modal/navigation-modal.html | 2 +- .../quiz/components/preflight-modal/preflight-modal.html | 2 +- src/addons/mod/quiz/pages/player/player.html | 6 +++--- src/addons/mod/quiz/pages/review/review.html | 2 +- src/addons/mod/scorm/components/toc/toc.html | 2 +- src/addons/mod/scorm/pages/player/player.html | 2 +- src/addons/mod/wiki/components/map/map.html | 2 +- src/addons/mod/workshop/components/phase/phase.html | 2 +- src/addons/notes/components/add/add-modal.html | 2 +- src/core/components/recaptcha/core-recaptcha-modal.html | 2 +- src/core/features/comments/components/add/add.html | 2 +- .../components/choose-site-modal/choose-site-modal.html | 2 +- .../components/section-selector/section-selector.html | 2 +- .../components/self-enrol-password/self-enrol-password.html | 2 +- .../emulator/components/capture-media/capture-media.html | 2 +- src/core/features/login/components/site-help/site-help.html | 2 +- .../login/components/site-onboarding/site-onboarding.html | 4 ++-- .../login/pages/change-password/change-password.html | 2 +- src/core/features/login/pages/credentials/credentials.html | 2 +- .../features/login/pages/email-signup/email-signup.html | 2 +- src/core/features/login/pages/site/site.html | 2 +- src/core/features/login/pages/sites/sites.html | 2 +- .../features/rating/components/ratings/ratings-modal.html | 2 +- src/core/features/settings/pages/deviceinfo/deviceinfo.html | 2 +- .../sharedfiles/components/list-modal/list-modal.html | 2 +- src/core/features/viewer/components/image/image.html | 2 +- .../features/viewer/components/qr-scanner/qr-scanner.html | 2 +- src/core/features/viewer/components/text/text.html | 2 +- src/theme/theme.base.scss | 4 ++++ 46 files changed, 52 insertions(+), 48 deletions(-) diff --git a/src/addons/calendar/pages/day/day.html b/src/addons/calendar/pages/day/day.html index 6a4f49244..25aabb33e 100644 --- a/src/addons/calendar/pages/day/day.html +++ b/src/addons/calendar/pages/day/day.html @@ -5,7 +5,7 @@ {{ 'addon.calendar.calendarevents' | translate }} - + diff --git a/src/addons/calendar/pages/index/index.html b/src/addons/calendar/pages/index/index.html index 7f1718b39..c5687230a 100644 --- a/src/addons/calendar/pages/index/index.html +++ b/src/addons/calendar/pages/index/index.html @@ -5,7 +5,7 @@ {{ (showCalendar ? 'addon.calendar.calendarevents' : 'addon.calendar.upcomingevents') | translate }} - + diff --git a/src/addons/calendar/pages/list/list.html b/src/addons/calendar/pages/list/list.html index e792a4dae..bb3bc6edb 100644 --- a/src/addons/calendar/pages/list/list.html +++ b/src/addons/calendar/pages/list/list.html @@ -5,7 +5,7 @@ {{ 'addon.calendar.calendarevents' | translate }} - + diff --git a/src/addons/messages/components/conversation-info/conversation-info.html b/src/addons/messages/components/conversation-info/conversation-info.html index b99965dc4..129cbdcb9 100644 --- a/src/addons/messages/components/conversation-info/conversation-info.html +++ b/src/addons/messages/components/conversation-info/conversation-info.html @@ -2,7 +2,7 @@ {{ 'addon.messages.groupinfo' | translate }} - + diff --git a/src/addons/messages/pages/contacts/contacts.html b/src/addons/messages/pages/contacts/contacts.html index 278067540..381cd613d 100644 --- a/src/addons/messages/pages/contacts/contacts.html +++ b/src/addons/messages/pages/contacts/contacts.html @@ -5,7 +5,7 @@ {{ 'addon.messages.contacts' | translate }} - + - diff --git a/src/addons/mod/quiz/pages/review/review.html b/src/addons/mod/quiz/pages/review/review.html index fdf75869f..6ed4b8fe7 100644 --- a/src/addons/mod/quiz/pages/review/review.html +++ b/src/addons/mod/quiz/pages/review/review.html @@ -6,7 +6,7 @@ {{ 'addon.mod_quiz.review' | translate }} - diff --git a/src/addons/mod/scorm/components/toc/toc.html b/src/addons/mod/scorm/components/toc/toc.html index 0a02d1831..46b28caff 100644 --- a/src/addons/mod/scorm/components/toc/toc.html +++ b/src/addons/mod/scorm/components/toc/toc.html @@ -2,7 +2,7 @@ {{ 'addon.mod_scorm.toc' | translate }} - + diff --git a/src/addons/mod/scorm/pages/player/player.html b/src/addons/mod/scorm/pages/player/player.html index acaf6d7f5..bf33b88fc 100644 --- a/src/addons/mod/scorm/pages/player/player.html +++ b/src/addons/mod/scorm/pages/player/player.html @@ -8,7 +8,7 @@ - diff --git a/src/addons/mod/wiki/components/map/map.html b/src/addons/mod/wiki/components/map/map.html index aab584673..7e34f12ef 100644 --- a/src/addons/mod/wiki/components/map/map.html +++ b/src/addons/mod/wiki/components/map/map.html @@ -2,7 +2,7 @@ {{ 'addon.mod_wiki.map' | translate }} - + diff --git a/src/addons/mod/workshop/components/phase/phase.html b/src/addons/mod/workshop/components/phase/phase.html index ee953c812..59b0153eb 100644 --- a/src/addons/mod/workshop/components/phase/phase.html +++ b/src/addons/mod/workshop/components/phase/phase.html @@ -5,7 +5,7 @@ {{ 'addon.mod_workshop.userplan' | translate }} - + diff --git a/src/addons/notes/components/add/add-modal.html b/src/addons/notes/components/add/add-modal.html index e0d6868d6..ad401e126 100644 --- a/src/addons/notes/components/add/add-modal.html +++ b/src/addons/notes/components/add/add-modal.html @@ -2,7 +2,7 @@ {{ 'addon.notes.addnewnote' | translate }} - + diff --git a/src/core/components/recaptcha/core-recaptcha-modal.html b/src/core/components/recaptcha/core-recaptcha-modal.html index 74296c2a2..9d8f70aa6 100644 --- a/src/core/components/recaptcha/core-recaptcha-modal.html +++ b/src/core/components/recaptcha/core-recaptcha-modal.html @@ -3,7 +3,7 @@ {{ 'core.login.security_question' | translate }} - + diff --git a/src/core/features/comments/components/add/add.html b/src/core/features/comments/components/add/add.html index 8d163f380..cb848f344 100644 --- a/src/core/features/comments/components/add/add.html +++ b/src/core/features/comments/components/add/add.html @@ -2,7 +2,7 @@ {{ 'core.comments.addcomment' | translate }} - + diff --git a/src/core/features/contentlinks/components/choose-site-modal/choose-site-modal.html b/src/core/features/contentlinks/components/choose-site-modal/choose-site-modal.html index c9e2a7de9..a23667308 100644 --- a/src/core/features/contentlinks/components/choose-site-modal/choose-site-modal.html +++ b/src/core/features/contentlinks/components/choose-site-modal/choose-site-modal.html @@ -5,7 +5,7 @@ {{ 'core.contentlinks.chooseaccount' | translate }} - + diff --git a/src/core/features/course/components/section-selector/section-selector.html b/src/core/features/course/components/section-selector/section-selector.html index c7d6a3feb..e31d1c9e9 100644 --- a/src/core/features/course/components/section-selector/section-selector.html +++ b/src/core/features/course/components/section-selector/section-selector.html @@ -2,7 +2,7 @@ {{ 'core.course.sections' | translate }} - + diff --git a/src/core/features/courses/components/self-enrol-password/self-enrol-password.html b/src/core/features/courses/components/self-enrol-password/self-enrol-password.html index 74eea5067..5de62417d 100644 --- a/src/core/features/courses/components/self-enrol-password/self-enrol-password.html +++ b/src/core/features/courses/components/self-enrol-password/self-enrol-password.html @@ -3,7 +3,7 @@ {{ 'core.courses.selfenrolment' | translate }} - + diff --git a/src/core/features/emulator/components/capture-media/capture-media.html b/src/core/features/emulator/components/capture-media/capture-media.html index 95819fa7a..d3d3825e3 100644 --- a/src/core/features/emulator/components/capture-media/capture-media.html +++ b/src/core/features/emulator/components/capture-media/capture-media.html @@ -3,7 +3,7 @@ {{ title | translate }} - {{ 'core.cancel' | translate }} + {{ 'core.cancel' | translate }} {{ 'core.done' | translate }} diff --git a/src/core/features/login/components/site-help/site-help.html b/src/core/features/login/components/site-help/site-help.html index e683a53c5..ecbc3ad2a 100644 --- a/src/core/features/login/components/site-help/site-help.html +++ b/src/core/features/login/components/site-help/site-help.html @@ -3,7 +3,7 @@ {{ 'core.login.help' | translate }} - + diff --git a/src/core/features/login/components/site-onboarding/site-onboarding.html b/src/core/features/login/components/site-onboarding/site-onboarding.html index 85bb6c5f0..851adbfe8 100644 --- a/src/core/features/login/components/site-onboarding/site-onboarding.html +++ b/src/core/features/login/components/site-onboarding/site-onboarding.html @@ -1,13 +1,13 @@ - + - + {{'core.skip' | translate}} diff --git a/src/core/features/login/pages/change-password/change-password.html b/src/core/features/login/pages/change-password/change-password.html index ce70a4fdd..a2704e19d 100644 --- a/src/core/features/login/pages/change-password/change-password.html +++ b/src/core/features/login/pages/change-password/change-password.html @@ -7,7 +7,7 @@ {{ 'core.login.changepassword' | translate }} - + diff --git a/src/core/features/login/pages/credentials/credentials.html b/src/core/features/login/pages/credentials/credentials.html index 8043950ab..7594c44cc 100644 --- a/src/core/features/login/pages/credentials/credentials.html +++ b/src/core/features/login/pages/credentials/credentials.html @@ -7,7 +7,7 @@ {{ 'core.login.login' | translate }} - 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 bde636e63..5da51c810 100644 --- a/src/core/features/login/pages/email-signup/email-signup.html +++ b/src/core/features/login/pages/email-signup/email-signup.html @@ -7,7 +7,7 @@ {{ 'core.login.newaccount' | translate }} - diff --git a/src/core/features/login/pages/site/site.html b/src/core/features/login/pages/site/site.html index 60c8a4458..abd234287 100644 --- a/src/core/features/login/pages/site/site.html +++ b/src/core/features/login/pages/site/site.html @@ -7,7 +7,7 @@ {{ 'core.login.connecttomoodle' | translate }} - diff --git a/src/core/features/login/pages/sites/sites.html b/src/core/features/login/pages/sites/sites.html index 373cf5f00..59fb663d8 100644 --- a/src/core/features/login/pages/sites/sites.html +++ b/src/core/features/login/pages/sites/sites.html @@ -7,7 +7,7 @@ {{ 'core.settings.sites' | translate }} - + {{ 'core.rating.ratings' | translate }} - + diff --git a/src/core/features/settings/pages/deviceinfo/deviceinfo.html b/src/core/features/settings/pages/deviceinfo/deviceinfo.html index 6783de44d..a1fa11b74 100644 --- a/src/core/features/settings/pages/deviceinfo/deviceinfo.html +++ b/src/core/features/settings/pages/deviceinfo/deviceinfo.html @@ -7,7 +7,7 @@ {{ 'core.settings.deviceinfo' | translate }} - + diff --git a/src/core/features/sharedfiles/components/list-modal/list-modal.html b/src/core/features/sharedfiles/components/list-modal/list-modal.html index d07816245..7b0fbb7b7 100644 --- a/src/core/features/sharedfiles/components/list-modal/list-modal.html +++ b/src/core/features/sharedfiles/components/list-modal/list-modal.html @@ -6,7 +6,7 @@ {{ title }} - + diff --git a/src/core/features/viewer/components/image/image.html b/src/core/features/viewer/components/image/image.html index 624200036..04da60dc1 100644 --- a/src/core/features/viewer/components/image/image.html +++ b/src/core/features/viewer/components/image/image.html @@ -2,7 +2,7 @@ {{ title }} - + diff --git a/src/core/features/viewer/components/qr-scanner/qr-scanner.html b/src/core/features/viewer/components/qr-scanner/qr-scanner.html index f70273deb..c42c63baf 100644 --- a/src/core/features/viewer/components/qr-scanner/qr-scanner.html +++ b/src/core/features/viewer/components/qr-scanner/qr-scanner.html @@ -2,7 +2,7 @@ {{ title }} - + diff --git a/src/core/features/viewer/components/text/text.html b/src/core/features/viewer/components/text/text.html index 631f2c250..6bff2f20c 100644 --- a/src/core/features/viewer/components/text/text.html +++ b/src/core/features/viewer/components/text/text.html @@ -3,7 +3,7 @@ {{ title }} - + diff --git a/src/theme/theme.base.scss b/src/theme/theme.base.scss index 999118e32..b031e6ec8 100644 --- a/src/theme/theme.base.scss +++ b/src/theme/theme.base.scss @@ -77,6 +77,10 @@ ion-toolbar .in-toolbar.button-clear { --ion-toolbar-color: var(--ion-color-primary-contrast); } +ion-header ion-toolbar .button.button-clear { + --color: var(--ion-color-primary-contrast); +} + ion-toolbar .core-navbar-button-hidden { display: none !important; }