Skip to content

Commit

Permalink
Merge pull request #816 from validide/master
Browse files Browse the repository at this point in the history
Enhanced ProgressBar Contrast Ration
  • Loading branch information
nscuro authored Apr 16, 2024
2 parents 353be75 + a49b85a commit ba20215
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
9 changes: 6 additions & 3 deletions src/views/components/PolicyViolationProgressBar.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
<template>
<span v-if="metrics.policyViolationsTotal === 0" class="progress">
<b-progress class="table-progress" :max="'0'" show-value>
<b-progress-bar class="table-progress" value="0"></b-progress-bar>
<b-progress-bar
class="table-progress text-dark"
value="0"
></b-progress-bar>
</b-progress>
</span>
<span v-else class="progress">
Expand All @@ -13,11 +16,11 @@
>
<b-progress-bar
:value="metrics.policyViolationsInfo"
class="severity-info-bg"
class="severity-info-bg text-dark"
></b-progress-bar>
<b-progress-bar
:value="metrics.policyViolationsWarn"
class="severity-warn-bg"
class="severity-warn-bg text-dark"
></b-progress-bar>
<b-progress-bar
:value="metrics.policyViolationsFail"
Expand Down
12 changes: 9 additions & 3 deletions src/views/components/SeverityProgressBar.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
<template>
<span v-if="vulnerabilities === 0" class="progress">
<b-progress class="table-progress" :max="'0'" show-value>
<b-progress-bar class="table-progress" value="0"></b-progress-bar>
<b-progress-bar
class="table-progress text-dark"
value="0"
></b-progress-bar>
</b-progress>
</span>
<span v-else class="progress">
Expand All @@ -11,10 +14,13 @@
:value="critical"
class="severity-critical-bg"
></b-progress-bar>
<b-progress-bar :value="high" class="severity-high-bg"></b-progress-bar>
<b-progress-bar
:value="high"
class="severity-high-bg text-dark"
></b-progress-bar>
<b-progress-bar
:value="medium"
class="severity-medium-bg"
class="severity-medium-bg text-dark"
></b-progress-bar>
<b-progress-bar :value="low" class="severity-low-bg"></b-progress-bar>
<b-progress-bar
Expand Down

0 comments on commit ba20215

Please sign in to comment.