From 4427f91b630a3f0e01b49e31ffe7dd6ceb6fa5e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Tue, 9 Jul 2024 10:48:50 +0200 Subject: [PATCH] MOBILE-4569 styles: Hide ion-buttons on toolbar (error in Ionic) --- .../mod/assign/pages/submission-review/submission-review.html | 2 +- src/addons/mod/quiz/pages/player/player.html | 2 +- src/addons/mod/workshop/pages/submission/submission.html | 3 +-- src/addons/notes/pages/list/list.html | 3 ++- src/core/components/context-menu/core-context-menu.html | 2 +- src/core/components/navbar-buttons/navbar-buttons.ts | 4 ++-- src/theme/theme.base.scss | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/addons/mod/assign/pages/submission-review/submission-review.html b/src/addons/mod/assign/pages/submission-review/submission-review.html index fe477e715..dd7d7950a 100644 --- a/src/addons/mod/assign/pages/submission-review/submission-review.html +++ b/src/addons/mod/assign/pages/submission-review/submission-review.html @@ -13,7 +13,7 @@ - + {{ 'core.done' | translate }} diff --git a/src/addons/mod/quiz/pages/player/player.html b/src/addons/mod/quiz/pages/player/player.html index b9c3574f1..e3de19c9b 100644 --- a/src/addons/mod/quiz/pages/player/player.html +++ b/src/addons/mod/quiz/pages/player/player.html @@ -11,7 +11,7 @@ - diff --git a/src/addons/mod/workshop/pages/submission/submission.html b/src/addons/mod/workshop/pages/submission/submission.html index 6c5a1afb1..dde29a697 100644 --- a/src/addons/mod/workshop/pages/submission/submission.html +++ b/src/addons/mod/workshop/pages/submission/submission.html @@ -10,8 +10,7 @@ - + {{ 'core.save' | translate }} diff --git a/src/addons/notes/pages/list/list.html b/src/addons/notes/pages/list/list.html index 058c56ec6..7cdafa23f 100644 --- a/src/addons/notes/pages/list/list.html +++ b/src/addons/notes/pages/list/list.html @@ -11,7 +11,8 @@ - + diff --git a/src/core/components/context-menu/core-context-menu.html b/src/core/components/context-menu/core-context-menu.html index dee543e37..175bcd677 100644 --- a/src/core/components/context-menu/core-context-menu.html +++ b/src/core/components/context-menu/core-context-menu.html @@ -1,4 +1,4 @@ - diff --git a/src/core/components/navbar-buttons/navbar-buttons.ts b/src/core/components/navbar-buttons/navbar-buttons.ts index 349377eec..631732347 100644 --- a/src/core/components/navbar-buttons/navbar-buttons.ts +++ b/src/core/components/navbar-buttons/navbar-buttons.ts @@ -40,12 +40,12 @@ const BUTTON_HIDDEN_CLASS = 'core-navbar-button-hidden'; * * You can use the [hidden] input to hide all the inner buttons if a certain condition is met. * - * IMPORTANT: Do not use *ngIf in the buttons inside this component, it can cause problems. Please use [hidden] instead. + * IMPORTANT: Do not use *ngIf in the buttons inside this component, it can cause problems. Please use [class.hidden] instead. * * Example usage: * * - * + * * * * diff --git a/src/theme/theme.base.scss b/src/theme/theme.base.scss index 4e85f1003..2c4350d3e 100644 --- a/src/theme/theme.base.scss +++ b/src/theme/theme.base.scss @@ -488,7 +488,7 @@ video::-webkit-media-text-track-display { /** * https://github.com/ionic-team/ionic-framework/blob/6ffbdbb3b2b69290cf25753d535bc7483bd7c6e8/BREAKING.md#css-utilities */ -[hidden] { +[hidden], .hidden { display: none !important; }