From: Dessalines <dessalines@users.noreply.github.com>
Date: Wed, 26 Jul 2023 19:51:43 +0000 (-0400)
Subject: Make sure comment score color matches your vote. (#1988)
X-Git-Url: http://these/git/%7B%60/feeds/front/static/%7Blink%7D?a=commitdiff_plain;h=2ccaaf1bcd1729b34a8ce66d25e32100e3191cee;p=lemmy-ui.git

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

* Make sure comment score color matches your vote.

* Fixing lints.
---

diff --git a/src/shared/components/comment/comment-node.tsx b/src/shared/components/comment/comment-node.tsx
index c2223df..4bfd623 100644
--- a/src/shared/components/comment/comment-node.tsx
+++ b/src/shared/components/comment/comment-node.tsx
@@ -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),