From f2997313b4d74cf0f73de7a794de84af0b2c5431 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Mon, 8 May 2023 07:50:05 +0200 Subject: [PATCH] MOBILE-4270 icon: Fix some broken icons names --- src/core/directives/format-text.ts | 2 +- src/core/features/question/services/question-helper.ts | 2 +- src/theme/theme.base.scss | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/directives/format-text.ts b/src/core/directives/format-text.ts index e2c48feab..af578e717 100644 --- a/src/core/directives/format-text.ts +++ b/src/core/directives/format-text.ts @@ -280,7 +280,7 @@ export class CoreFormatTextDirective implements OnChanges, OnDestroy, AsyncDirec button.setAttribute('aria-label', label); // Add an ion-icon item to apply the right styles, but the ion-icon component won't be executed. button.innerHTML = ''; button.addEventListener('click', (e: Event) => { diff --git a/src/core/features/question/services/question-helper.ts b/src/core/features/question/services/question-helper.ts index 846f4d640..5dc04b069 100644 --- a/src/core/features/question/services/question-helper.ts +++ b/src/core/features/question/services/question-helper.ts @@ -806,7 +806,7 @@ export class CoreQuestionHelperProvider { newIcon.className = 'core-correct-icon ion-color ion-color-success questioncorrectnessicon'; } else { newIcon.setAttribute('name', 'fas-xmark'); - newIcon.setAttribute('src', 'assets/fonts/font-awesome/solid/times.svg'); + newIcon.setAttribute('src', 'assets/fonts/font-awesome/solid/xmark.svg'); newIcon.className = 'core-correct-icon ion-color ion-color-danger questioncorrectnessicon'; } diff --git a/src/theme/theme.base.scss b/src/theme/theme.base.scss index 8d599f0ad..1a8e8cd89 100644 --- a/src/theme/theme.base.scss +++ b/src/theme/theme.base.scss @@ -451,8 +451,8 @@ div.core-iframe-network-error { width: 50%; height: 50%; background-color: var(--danger); - -webkit-mask: url("/assets/fonts/font-awesome/solid/exclamation-triangle.svg") no-repeat 50% 50%; - mask: url("/assets/fonts/font-awesome/solid/exclamation-triangle.svg") no-repeat 50% 50%; + -webkit-mask: url("/assets/fonts/font-awesome/solid/triangle-exclamation.svg") no-repeat 50% 50%; + mask: url("/assets/fonts/font-awesome/solid/triangle-exclamation.svg") no-repeat 50% 50%; } }