From 2dfe139eeaf21ca49c39696ae44f5a80c1678657 Mon Sep 17 00:00:00 2001 From: Marc Glasser Date: Thu, 15 Jun 2023 11:45:22 -1000 Subject: [PATCH] Merge pull request #20845 from tienifr/fix/20819-wrong-text-color-our-mention Fix: Wrong text color for our mention (cherry picked from commit 9fda6a55bb5f8997863dd6a6c994934bf36eaad9) --- .../HTMLEngineProvider/HTMLRenderers/MentionUserRenderer.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/HTMLEngineProvider/HTMLRenderers/MentionUserRenderer.js b/src/components/HTMLEngineProvider/HTMLRenderers/MentionUserRenderer.js index a77c425c0ed2..6d4ab03b5e56 100644 --- a/src/components/HTMLEngineProvider/HTMLRenderers/MentionUserRenderer.js +++ b/src/components/HTMLEngineProvider/HTMLRenderers/MentionUserRenderer.js @@ -42,8 +42,7 @@ function MentionUserRenderer(props) { // eslint-disable-next-line react/jsx-props-no-spreading {...defaultRendererProps} href={ROUTES.getDetailsRoute(loginWithoutLeadingAt)} - color={StyleUtils.getMentionTextColor(isOurMention)} - style={[_.omit(props.style, 'color'), StyleUtils.getMentionStyle(isOurMention)]} + style={[_.omit(props.style, 'color'), StyleUtils.getMentionStyle(isOurMention), {color: StyleUtils.getMentionTextColor(isOurMention)}]} onPress={() => showUserDetails(loginWithoutLeadingAt)} >