File tree Expand file tree Collapse file tree 3 files changed +21
-10
lines changed Expand file tree Collapse file tree 3 files changed +21
-10
lines changed Original file line number Diff line number Diff line change 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}
Original file line number Diff line number Diff 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} )
910export 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 =
Original file line number Diff line number Diff 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 { }
You can’t perform that action at this time.
0 commit comments