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 GitHub
parent 925d9624d5
commit 2ccaaf1bcd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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