Skip to content

Commit

Permalink
fix: fixed text-alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
razvanMiu committed Jun 8, 2023
1 parent 12d0272 commit a2dc67f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/StatisticBlock/View.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ const View = ({ data, mode }) => {
key={`${index}-${item.label}`}
{...(href ? { className: 'ui statistic', href } : {})}
>
<Statistic.Value className={cx('slate', valueVariation)}>
<Statistic.Value
className={cx('slate', `text-${textAlign}`, valueVariation)}
>
{animation.enabled && isNumber(valueNo) && !isNaN(valueNo) ? (
<CountUp
end={valueNo}
Expand All @@ -99,10 +101,12 @@ const View = ({ data, mode }) => {
_serializeNodes(valueNodes)
)}
</Statistic.Value>
<Statistic.Label className={cx('slate', labelVariation)}>
<Statistic.Label
className={cx('slate', `text-${textAlign}`, labelVariation)}
>
{serializeNodes(item.label)}
</Statistic.Label>
<div className={cx('slate text-center', extraVariation)}>
<div className={cx('slate', `text-${textAlign}`, extraVariation)}>
{serializeNodes(item.info)}
</div>
</StatisticWrapper>
Expand Down

0 comments on commit a2dc67f

Please sign in to comment.