Skip to content

Commit 05967a6

Browse files
authored
Improve color scheme and responsiveness of status message banner (#395)
1 parent 0cb014f commit 05967a6

File tree

2 files changed

+23
-6
lines changed

2 files changed

+23
-6
lines changed

src/app/shared/modules/status-message/status-banner/status-banner.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<mat-toolbar [color]="bannerColor" class="toolbar">
1+
<mat-toolbar [color]="bannerColor" [class]='["toolbar", "toolbar-" + appConfig.statusCode]'>
22
<span [innerHTML]="appConfig.statusMessage" class="status-message"></span>
33
<span class="spacer"></span>
44
<button mat-icon-button aria-label="Dismiss" (click)="onDismiss()">

src/app/shared/modules/status-message/status-banner/status-banner.component.scss

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,32 @@
33
}
44

55
.toolbar {
6-
height: 32px;
6+
min-height: 32px;
7+
height: fit-content;
78
}
89

10+
.status-message {
11+
text-wrap: wrap;
12+
}
13+
14+
.toolbar-WARN {
15+
background-color: #FEEFB3;
16+
color: #9F6000;
17+
}
18+
19+
.toolbar-INFO {
20+
color: #4F8A10;
21+
background-color: #DFF2BF;
22+
}
23+
24+
925
@media (max-width: 800px) {
10-
.toolbar {
11-
height: 64px;
12-
}
1326
.status-message {
14-
text-wrap: wrap;
1527
font-size: 16px;
1628
}
1729
}
30+
31+
:host ::ng-deep a {
32+
text-decoration: underline;
33+
color: inherit;
34+
}

0 commit comments

Comments
 (0)