Skip to content

Commit

Permalink
LPD-1195 Creating Legend-text-color class and assigning this in recha…
Browse files Browse the repository at this point in the history
…rt legend
  • Loading branch information
sillascavalcanti authored and brianchandotcom committed May 20, 2024
1 parent bcd7627 commit e2c0fa8
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,7 @@ $circleSize: 8px;
}
}
}

.legend-text-color{
color: $mainLighten28;
}
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,9 @@ const ActiveIndividualsChart: React.FC<IActiveIndividualsChartProps> = ({

<Legend
align='right'
formatter={dataKey => (
<span className='legend-text-color'>{dataKey}</span>
)}
iconSize={8}
onMouseEnter={({dataKey}) =>
setLegendHoverItem(dataKey)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ export const SegmentGrowthChart: React.FC<ISegmentGrowthChartProps> = ({
<Legend
align='left'
formatter={(value, {count}) => (
<span>
<span className='legend-text-color'>
{`${value}:`}

<b className='ml-1'>{count}</b>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,12 @@ export const MetricChart: React.FC<IMetricChartProps> = ({

return (
<>
{`${label}:`}

<b className='ml-1'>{value}</b>
<span className='legend-text-color'>
{label}
<b className='ml-1'>
{value}
</b>
</span>
</>
);
}
Expand Down

0 comments on commit e2c0fa8

Please sign in to comment.