diff --git a/src/addons/block/recentlyaccessedcourses/components/recentlyaccessedcourses/addon-block-recentlyaccessedcourses.html b/src/addons/block/recentlyaccessedcourses/components/recentlyaccessedcourses/addon-block-recentlyaccessedcourses.html index 56d9ffb91..0bc7f105f 100644 --- a/src/addons/block/recentlyaccessedcourses/components/recentlyaccessedcourses/addon-block-recentlyaccessedcourses.html +++ b/src/addons/block/recentlyaccessedcourses/components/recentlyaccessedcourses/addon-block-recentlyaccessedcourses.html @@ -2,7 +2,7 @@

{{ 'addon.block_recentlyaccessedcourses.pluginname' | translate }}

-
+
diff --git a/src/addons/block/starredcourses/components/starredcourses/addon-block-starredcourses.html b/src/addons/block/starredcourses/components/starredcourses/addon-block-starredcourses.html index 9b3cbaa37..afabaf9b9 100644 --- a/src/addons/block/starredcourses/components/starredcourses/addon-block-starredcourses.html +++ b/src/addons/block/starredcourses/components/starredcourses/addon-block-starredcourses.html @@ -2,7 +2,7 @@

{{ 'addon.block_starredcourses.pluginname' | translate }}

-
+
diff --git a/src/addons/messages/pages/contacts/contacts.page.ts b/src/addons/messages/pages/contacts/contacts.page.ts index 473820dd8..80f49d224 100644 --- a/src/addons/messages/pages/contacts/contacts.page.ts +++ b/src/addons/messages/pages/contacts/contacts.page.ts @@ -32,7 +32,6 @@ import { IonRefresher } from '@ionic/angular'; selector: 'page-addon-messages-contacts', templateUrl: 'contacts.html', styleUrls: [ - 'tabs.scss', '../../messages-common.scss', ], }) diff --git a/src/addons/messages/pages/contacts/tabs.scss b/src/addons/messages/pages/contacts/tabs.scss deleted file mode 100644 index 8bb0948a5..000000000 --- a/src/addons/messages/pages/contacts/tabs.scss +++ /dev/null @@ -1,48 +0,0 @@ -:host { - ion-tab-bar.core-tabs-bar { - position: relative; - width: 100%; - background: var(--core-tabs-background); - color: var(--core-tab-color); - -webkit-filter: drop-shadow(0px 3px 3px rgba(var(--drop-shadow))); - filter: drop-shadow(0px 3px 3px rgba(var(--drop-shadow))); - border: 0; - - ion-row { - width: 100%; - } - - .tab-slide { - border-bottom: 2px solid transparent; - min-width: 100px; - min-height: 56px; - cursor: pointer; - overflow: hidden; - display: flex; - align-items: center; - justify-content: center; - padding: 0; - margin-bottom: 1px; - - ion-label { - font-size: 16px; - font-weight: 400; - text-overflow: ellipsis; - white-space: nowrap; - overflow: hidden; - word-wrap: break-word; - max-width: 100%; - line-height: 1.2em; - margin: 16px auto; - } - - &[aria-selected=true] { - color: var(--core-tab-border-color-active); - border-bottom-color: var(--core-tab-color-active); - ion-tab-button { - color: var(--core-tab-border-color-active); - } - } - } - } -} diff --git a/src/core/components/dynamic-component/dynamic-component.ts b/src/core/components/dynamic-component/dynamic-component.ts index 033ab327a..b49dbafb7 100644 --- a/src/core/components/dynamic-component/dynamic-component.ts +++ b/src/core/components/dynamic-component/dynamic-component.ts @@ -62,6 +62,7 @@ import { CoreLogger } from '@singletons/logger'; @Component({ selector: 'core-dynamic-component', templateUrl: 'core-dynamic-component.html', + styles: [':host { display: contents; }'], }) export class CoreDynamicComponent implements OnChanges, DoCheck { diff --git a/src/core/components/loading/loading.scss b/src/core/components/loading/loading.scss index f295487c9..1ed6c3d6e 100644 --- a/src/core/components/loading/loading.scss +++ b/src/core/components/loading/loading.scss @@ -56,5 +56,9 @@ padding-top: 20px; position: relative; } + + .core-loading-content { + display: block; + } } } diff --git a/src/core/components/send-message-form/core-send-message-form.html b/src/core/components/send-message-form/core-send-message-form.html index 292f9c2f2..74fadaad4 100644 --- a/src/core/components/send-message-form/core-send-message-form.html +++ b/src/core/components/send-message-form/core-send-message-form.html @@ -17,7 +17,7 @@ > + [attr.aria-label]="'core.send' | translate" [core-suppress-events] (onClick)="submitForm($event)"> diff --git a/src/core/components/tabs/tabs.scss b/src/core/components/tabs/tabs.scss index 3c4a05405..8bc9d4b3e 100644 --- a/src/core/components/tabs/tabs.scss +++ b/src/core/components/tabs/tabs.scss @@ -1,6 +1,6 @@ :host { --tabs-background: var(--core-tabs-background); - --tabs-color: var(--color); + --tabs-color: var(--core-tab-color); --height: 56px; height: 100%; display: block; diff --git a/src/core/directives/supress-events.ts b/src/core/directives/supress-events.ts index e651b1eca..0ec7aab2e 100644 --- a/src/core/directives/supress-events.ts +++ b/src/core/directives/supress-events.ts @@ -15,6 +15,7 @@ // Based on http://roblouie.com/article/198/using-gestures-in-the-ionic-2-beta/ import { Directive, ElementRef, OnInit, Input, Output, EventEmitter } from '@angular/core'; +import { CoreLogger } from '@singletons/logger'; /** * Directive to suppress all events on an element. This is useful to prevent keyboard closing when clicking this element. @@ -29,6 +30,8 @@ import { Directive, ElementRef, OnInit, Input, Output, EventEmitter } from '@ang * If you only want to suppress a single event just pass the name of the event. If you want to suppress a set of events, * pass an array with the names of the events to suppress. * + * Usage of onClick instead of click is mandatory to make this directive work. + * * Example usage: * * @@ -51,6 +54,13 @@ export class CoreSupressEventsDirective implements OnInit { * Initialize event listeners. */ ngOnInit(): void { + if (this.onClick.observers.length == 0) { + CoreLogger.getInstance('CoreSupressEventsDirective') + .error('No onClick output was defined causing this directive to fail', this.element); + + return; + } + let events: string[]; if (this.suppressEvents == 'all' || typeof this.suppressEvents == 'undefined' || this.suppressEvents === null) { diff --git a/src/core/features/comments/pages/viewer/viewer.html b/src/core/features/comments/pages/viewer/viewer.html index 6248c094e..ada1872c0 100644 --- a/src/core/features/comments/pages/viewer/viewer.html +++ b/src/core/features/comments/pages/viewer/viewer.html @@ -119,7 +119,7 @@ - + diff --git a/src/core/features/compile/components/compile-html/compile-html.ts b/src/core/features/compile/components/compile-html/compile-html.ts index a2e5ba06c..e3c72975e 100644 --- a/src/core/features/compile/components/compile-html/compile-html.ts +++ b/src/core/features/compile/components/compile-html/compile-html.ts @@ -56,6 +56,7 @@ import { CoreUtils } from '@services/utils/utils'; @Component({ selector: 'core-compile-html', template: '', + styles: [':host { display: contents; }'], }) // eslint-disable-next-line @angular-eslint/no-conflicting-lifecycle export class CoreCompileHtmlComponent implements OnChanges, OnDestroy, DoCheck { diff --git a/src/core/features/course/components/format/core-course-format.html b/src/core/features/course/components/format/core-course-format.html index 223fe9458..6aa6ce2f8 100644 --- a/src/core/features/course/components/format/core-course-format.html +++ b/src/core/features/course/components/format/core-course-format.html @@ -93,18 +93,19 @@ - + - - - - + + diff --git a/src/core/features/course/components/format/format.scss b/src/core/features/course/components/format/format.scss index 0c0b7aca9..3e556b5d2 100644 --- a/src/core/features/course/components/format/format.scss +++ b/src/core/features/course/components/format/format.scss @@ -58,4 +58,16 @@ } } + .core-course-section-nav-buttons { + display: flex; + justify-content: flex-end; + + core-format-text { + white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden; + text-transform: none; + } + } + } diff --git a/src/core/features/login/login.scss b/src/core/features/login/login.scss index 1f4c1782a..f3f652d1c 100644 --- a/src/core/features/login/login.scss +++ b/src/core/features/login/login.scss @@ -36,6 +36,7 @@ form .core-username.item p { font-size: 16px; + @include padding-horizontal(8px, null); } .core-login-site-logo img { diff --git a/src/core/features/login/pages/credentials/credentials.html b/src/core/features/login/pages/credentials/credentials.html index 26230ae7d..6ca872e41 100644 --- a/src/core/features/login/pages/credentials/credentials.html +++ b/src/core/features/login/pages/credentials/credentials.html @@ -91,7 +91,7 @@

- + {{ 'core.login.startsignup' | translate }} diff --git a/src/core/features/mainmenu/pages/menu/menu.html b/src/core/features/mainmenu/pages/menu/menu.html index ba8099d71..a22ffd18d 100644 --- a/src/core/features/mainmenu/pages/menu/menu.html +++ b/src/core/features/mainmenu/pages/menu/menu.html @@ -1,6 +1,6 @@ - +