From 80d7e22c031e23f3c55265d384dea06815cb610d Mon Sep 17 00:00:00 2001 From: Alec Armbruster <35377827+alectrocute@users.noreply.github.com> Date: Tue, 27 Jun 2023 16:54:35 -0400 Subject: [PATCH] remove hard-coded text foreground color classes 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 079edec7..8f689aa2 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 4a8de027..ad7c5fe5 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 64b9a7a8..a0249326 100644 --- a/src/shared/components/post/post-listing.tsx +++ b/src/shared/components/post/post-listing.tsx @@ -406,13 +406,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({