Make sure comment score color matches your vote. (#1988)

* Make sure comment score color matches your vote.

* Fixing lints.
This commit is contained in:
Dessalines 2023-07-26 15:51:43 -04:00 committed by Dessalines
parent c33bd5b470
commit 48d48e09a4

View file

@ -348,7 +348,7 @@ export class CommentNode extends Component<CommentNodeProps, CommentNodeState> {
{showScores() && (
<>
<span
className="me-1 fw-bold"
className={`me-1 fw-bold ${this.scoreColor}`}
aria-label={I18NextService.i18n.t("number_of_points", {
count: Number(this.commentView.counts.score),
formattedCount: numToSI(this.commentView.counts.score),