Skip to content

Commit 5b5cbc3

Browse files
committed
fix2
1 parent cd72615 commit 5b5cbc3

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

src/app/features/help-dashboard/help-dashboard.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');
2-
31
:host {
42
font-family: 'Plus Jakarta Sans', sans-serif;
53
display: block;

src/app/features/help-dashboard/help-dashboard.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,10 @@ export class HelpDashboard implements OnInit, AfterViewChecked {
8888
});
8989

9090
ngOnInit() {
91-
// Only access 'document' if we are in the browser
91+
this.injectFontAwesome();
92+
}
93+
94+
injectFontAwesome() {
9295
if (isPlatformBrowser(this.platformId)) {
9396
// Inject Lucide script for icons
9497
if (!document.getElementById('lucide-script')) {
@@ -101,6 +104,11 @@ export class HelpDashboard implements OnInit, AfterViewChecked {
101104
document.body.appendChild(script);
102105
}
103106
}
107+
108+
const font = document.createElement('link');
109+
font.href = "https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap";
110+
font.rel = "stylesheet";
111+
document.head.appendChild(font);
104112
}
105113

106114
ngAfterViewChecked() {

0 commit comments

Comments
 (0)