Skip to content

Commit 3d2ce3a

Browse files
committed
fix: improve color contrast of comparison table via badge styling
1 parent 306d537 commit 3d2ce3a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/components/compare/FacetRow.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ function getBarWidth(value: FacetValue | null | undefined): number {
4141
function getStatusClass(status?: FacetValue['status']): string {
4242
switch (status) {
4343
case 'good':
44-
return 'text-emerald-400'
44+
return 'bg-emerald-400 text-white px-3 py-0.5 rounded-xl'
4545
case 'info':
46-
return 'text-blue-400'
46+
return 'bg-blue-400 text-white px-3 py-0.5 rounded-xl'
4747
case 'warning':
48-
return 'text-amber-400'
48+
return 'bg-amber-400 px-3 py-0.5 rounded-xl'
4949
case 'bad':
50-
return 'text-red-400'
50+
return 'bg-red-400 text-white px-3 py-0.5 rounded-xl'
5151
case 'muted':
5252
return 'text-fg-subtle'
5353
default:

0 commit comments

Comments
 (0)