Skip to content

Commit

Permalink
Display colors for probability and impact risk matrix sections
Browse files Browse the repository at this point in the history
  • Loading branch information
monsieurswag committed Jun 7, 2024
1 parent 4694360 commit c8d3870
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions frontend/src/lib/components/RiskMatrix/RiskMatrix.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
{@const reverseIndex = displayedRiskMatrix.length - i - 1}
{@const probability = parsedRiskMatrix.probability[reverseIndex]}
<div
class="flex flex-col items-center justify-center bg-gray-200"
class="flex flex-col items-center justify-center bg-gray-200 border-dotted border-black border-2"
style="background: {probability.hexcolor}"
data-testid="probability-row-header"
>
<span class="font-semibold text-center" data-testid="probability-name"
Expand Down Expand Up @@ -68,7 +69,8 @@
<div />
{#each parsedRiskMatrix.impact as impact}
<div
class="flex flex-col items-center justify-center bg-gray-200 h-20"
class="flex flex-col items-center justify-center bg-gray-200 h-20 border-dotted border-black border-2"
style="background: {impact.hexcolor}"
data-testid="impact-col-header"
>
<span class="font-semibold" data-testid="impact-name">{impact.name}</span>
Expand Down

0 comments on commit c8d3870

Please sign in to comment.