]> Untitled Git - lemmy-ui.git/commitdiff
Make sure comment score color matches your vote. (#1988)
authorDessalines <dessalines@users.noreply.github.com>
Wed, 26 Jul 2023 19:51:43 +0000 (15:51 -0400)
committerGitHub <noreply@github.com>
Wed, 26 Jul 2023 19:51:43 +0000 (19:51 +0000)
* Make sure comment score color matches your vote.

* Fixing lints.

src/shared/components/comment/comment-node.tsx

index c2223dfbb6e1ea53c9f0f2be7657d58710d6e5de..4bfd62316c22bd408419b7d0450dbcee2ecec106 100644 (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),