From 874ae62fba7470693c3a514071111074a60db970 Mon Sep 17 00:00:00 2001 From: Alec Armbruster <35377827+alectrocute@users.noreply.github.com> Date: Tue, 27 Jun 2023 19:08:01 -0400 Subject: [PATCH] remove hard-coded text foreground color classes (#1658) Signed-off-by: Alec Armbruster <35377827+alectrocute@users.noreply.github.com> --- src/shared/components/comment/comment-node.tsx | 6 +++--- src/shared/components/person/profile.tsx | 4 ++-- src/shared/components/post/post-listing.tsx | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/shared/components/comment/comment-node.tsx b/src/shared/components/comment/comment-node.tsx index 079edec..8f689aa 100644 --- a/src/shared/components/comment/comment-node.tsx +++ b/src/shared/components/comment/comment-node.tsx @@ -322,7 +322,7 @@ export class CommentNode extends Component { getRoleLabelPill({ label: I18NextService.i18n.t("op").toUpperCase(), tooltip: I18NextService.i18n.t("creator"), - classes: "text-bg-info text-black", + classes: "text-bg-info", shrink: false, })} @@ -330,14 +330,14 @@ export class CommentNode extends Component { getRoleLabelPill({ label: I18NextService.i18n.t("mod"), tooltip: I18NextService.i18n.t("mod"), - classes: "text-bg-primary text-black", + classes: "text-bg-primary", })} {isAdmin_ && getRoleLabelPill({ label: I18NextService.i18n.t("admin"), tooltip: I18NextService.i18n.t("admin"), - classes: "text-bg-danger text-white", + classes: "text-bg-danger", })} {cv.creator.bot_account && diff --git a/src/shared/components/person/profile.tsx b/src/shared/components/person/profile.tsx index 4a8de02..ad7c5fe 100644 --- a/src/shared/components/person/profile.tsx +++ b/src/shared/components/person/profile.tsx @@ -489,7 +489,7 @@ export class Profile extends Component< {getRoleLabelPill({ label: I18NextService.i18n.t("banned"), tooltip: I18NextService.i18n.t("banned"), - classes: "text-bg-danger text-white", + classes: "text-bg-danger", shrink: false, })} @@ -499,7 +499,7 @@ export class Profile extends Component< {getRoleLabelPill({ label: I18NextService.i18n.t("deleted"), tooltip: I18NextService.i18n.t("deleted"), - classes: "text-bg-danger text-white", + classes: "text-bg-danger", shrink: false, })} diff --git a/src/shared/components/post/post-listing.tsx b/src/shared/components/post/post-listing.tsx index 98c3847..eb3d0f6 100644 --- a/src/shared/components/post/post-listing.tsx +++ b/src/shared/components/post/post-listing.tsx @@ -412,13 +412,13 @@ export class PostListing extends Component { getRoleLabelPill({ label: I18NextService.i18n.t("mod"), tooltip: I18NextService.i18n.t("mod"), - classes: "text-bg-primary text-black", + classes: "text-bg-primary", })} {this.creatorIsAdmin_ && getRoleLabelPill({ label: I18NextService.i18n.t("admin"), tooltip: I18NextService.i18n.t("admin"), - classes: "text-bg-danger text-white", + classes: "text-bg-danger", })} {post_view.creator.bot_account && getRoleLabelPill({ -- 2.44.1