Skip to content

Commit

Permalink
fix(experiments): Improve legibility of secondary metrics variants (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Twixes authored Dec 12, 2023
1 parent e3b2c9f commit 5163925
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions frontend/src/scenes/experiments/SecondaryMetrics.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,15 @@ export function SecondaryMetrics({
render: function Key(_, item: TabularSecondaryMetricResults): JSX.Element {
return (
<div
className="flex items-center w-fit h-5 px-1 rounded text-white text-xs"
// eslint-disable-next-line react/forbid-dom-props
style={{
color: getSeriesColor(
background: getSeriesColor(
getIndexForVariant(item.variant, experiment.filters?.insight || InsightType.TRENDS)
),
}}
>
<span className="text-sm">{capitalizeFirstLetter(item.variant)}</span>
{capitalizeFirstLetter(item.variant)}
</div>
)
},
Expand Down

0 comments on commit 5163925

Please sign in to comment.