Skip to content

Commit 731e9e0

Browse files
author
Johannes Reppin
committed
changes for angular 19
1 parent e2cd366 commit 731e9e0

File tree

3 files changed

+21
-10
lines changed

3 files changed

+21
-10
lines changed
Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,36 @@
11
@use "@angular/material" as mat;
2+
@use "sass:map";
23

34
@mixin color($theme) {
4-
$color-config: map-get($theme, "color");
5-
$primary: map-get($color-config, "primary");
5+
$color-config: map.get($theme, "color");
6+
$primary: map.get($color-config, "primary");
67

78
.footer {
8-
// Invert colors: background gets contrast color, text gets main color
9-
background-color: mat.get-color-from-palette($primary, "default-contrast");
10-
color: mat.get-color-from-palette($primary);
9+
background-color: mat.m2-get-color-from-palette($primary, "default-contrast");
10+
color: mat.m2-get-color-from-palette($primary);
1111

1212
a,
1313
.toplink,
1414
.footer-copy,
1515
mat-icon {
16-
color: mat.get-color-from-palette($primary);
16+
color: mat.m2-get-color-from-palette($primary);
17+
18+
}
19+
20+
mat-toolbar {
21+
background-color: mat.m2-get-color-from-palette($primary, "darker");
22+
}
23+
24+
a {
25+
color: mat.m2-get-color-from-palette($primary, "default-contrast");
1726
}
1827
}
1928
}
2029

2130
@mixin theme($theme) {
22-
$color-config: mat.get-color-config($theme);
23-
@if $color-config != null {
31+
32+
// Check if the 'color' key exists in the theme map
33+
@if map.has-key($theme, "color") {
2434
@include color($theme);
2535
}
2636
}

src/app/_layout/app-footer/app-footer.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@ import { AppConfigService } from "app-config.service";
55
selector: "app-app-footer",
66
templateUrl: "./app-footer.component.html",
77
styleUrls: ["./app-footer.component.scss"],
8+
standalone: false,
89
})
910
export class AppFooterComponent implements OnInit {
1011
appConfig = this.appConfigService.getConfig();
1112

1213
imprintUrl = "";
1314
privacyUrl = "";
1415

15-
constructor(public appConfigService: AppConfigService) {}
16+
constructor(public appConfigService: AppConfigService) { }
1617

1718
ngOnInit() {
1819
this.imprintUrl =

src/app/_layout/layout.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ import { AppFooterComponent } from './app-footer/app-footer.component';
3535
],
3636
exports: [],
3737
})
38-
export class LayoutModule {}
38+
export class LayoutModule { }

0 commit comments

Comments
 (0)