fix: percentile indicator contrast

This commit is contained in:
TrèsAbhi committed 2024-01-19 15:22:53 -06:00
1 parent c804a3d564
commit 5ca9e29f3d
2 files changed
+5 -5

No files matched your search

@@ -37,7 +37,7 @@ export function WN8Display({ WN8 }: WN8DisplayProps) {
gap: -16, gap: -16,
}} }}
> >
<Glow color={PERCENTILE_COLORS[percentile]} /> <Glow color={color} />
<div <div
style={{ style={{
@@ -71,7 +71,7 @@ export function WN8Display({ WN8 }: WN8DisplayProps) {
</span> </span>
</div> </div>
<Glow color={PERCENTILE_COLORS[percentile]} direction="reverse" /> <Glow color={color} direction="reverse" />
</div> </div>
); );
} }
+3 -3
View File
@@ -1,4 +1,5 @@
import { import {
amber,
blue, blue,
green, green,
lime, lime,
@@ -8,7 +9,6 @@ import {
red, red,
slate, slate,
teal, teal,
yellow,
} from '@radix-ui/colors'; } from '@radix-ui/colors';
import { Percentile } from '../constants/percentiles'; import { Percentile } from '../constants/percentiles';
@@ -20,8 +20,8 @@ export const PERCENTILE_COLORS = {
[Percentile.VeryBad]: slate.slate9, [Percentile.VeryBad]: slate.slate9,
[Percentile.Bad]: red.red9, [Percentile.Bad]: red.red9,
[Percentile.BelowAverage]: orange.orange9, [Percentile.BelowAverage]: orange.orange9,
[Percentile.Average]: yellow.yellow9, [Percentile.Average]: amber.amber10,
[Percentile.AboveAverage]: lime.lime9, [Percentile.AboveAverage]: lime.lime8,
[Percentile.Good]: green.green9, [Percentile.Good]: green.green9,
[Percentile.VeryGood]: teal.teal9, [Percentile.VeryGood]: teal.teal9,
[Percentile.Great]: blue.blue9, [Percentile.Great]: blue.blue9,