Skip to content

Commit 7e0fa79

Browse files
authored
feat: new color support in summary card (#886)
* feat: new color support in summary card
1 parent 472868b commit 7e0fa79

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

projects/assets-library/assets/styles/_color-palette.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ $color-health-red: $red-5;
9898
$color-health-unknown: $gray-7;
9999

100100
// Risk
101+
$color-risk-critical: $purple-6;
101102
$color-risk-high: $red-5;
102103
$color-risk-medium: $brown-1;
103104
$color-risk-low: $gray-6;

projects/components/src/summay-card/summary-card.component.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@
4242
&.gray {
4343
background-color: $gray-6;
4444
}
45+
46+
&.purple {
47+
background-color: $purple-6;
48+
}
4549
}
4650
}
4751

@@ -67,6 +71,10 @@
6771
&.gray {
6872
color: $gray-6;
6973
}
74+
75+
&.purple {
76+
color: $purple-6;
77+
}
7078
}
7179

7280
.footer {

projects/components/src/summay-card/summary-card.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
export const enum SummaryCardColor {
33
Red = 'red',
44
Brown = 'brown',
5-
Gray = 'gray'
5+
Gray = 'gray',
6+
Purple = 'purple'
67
}
78

89
export interface SummaryValue {

0 commit comments

Comments
 (0)