From 6b2bad677effdfae6207cfe1a630d2cb1e0aa7ae Mon Sep 17 00:00:00 2001 From: jameswilddev Date: Thu, 25 Nov 2021 13:00:31 +0000 Subject: [PATCH] Workaround for Android not respecting style changes. --- .../index.tsx | 11 ++++++++--- .../unit.tsx | 3 +++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/components/createSearchableMultiSelectComponent/createSearchableMultiSelectChildrenComponent/index.tsx b/components/createSearchableMultiSelectComponent/createSearchableMultiSelectChildrenComponent/index.tsx index 726c0325..299a6036 100644 --- a/components/createSearchableMultiSelectComponent/createSearchableMultiSelectChildrenComponent/index.tsx +++ b/components/createSearchableMultiSelectComponent/createSearchableMultiSelectChildrenComponent/index.tsx @@ -108,6 +108,9 @@ export const createSearchableMultiSelectChildrenComponent = < ...optionTextBase, color: controlStyle.focusedValid.textColor, }, + focusedCheckText: { + color: controlStyle.focusedValid.textColor, + }, blurredOptionText: { ...optionTextBase, color: controlStyle.blurredValid.textColor, @@ -168,9 +171,11 @@ export const createSearchableMultiSelectChildrenComponent = < } > {" "} diff --git a/components/createSearchableMultiSelectComponent/createSearchableMultiSelectChildrenComponent/unit.tsx b/components/createSearchableMultiSelectComponent/createSearchableMultiSelectChildrenComponent/unit.tsx index 2fe27b34..d9d27278 100644 --- a/components/createSearchableMultiSelectComponent/createSearchableMultiSelectChildrenComponent/unit.tsx +++ b/components/createSearchableMultiSelectComponent/createSearchableMultiSelectChildrenComponent/unit.tsx @@ -292,6 +292,7 @@ test(`renders as expected without a filter`, () => { expect.objectContaining({ type: Text, props: { + style: { color: `#55EA13` }, children: `✓`, }, }), @@ -1496,6 +1497,7 @@ test(`renders as expected without horizontal padding`, () => { expect.objectContaining({ type: Text, props: { + style: { color: `#55EA13` }, children: `✓`, }, }), @@ -1867,6 +1869,7 @@ test(`renders as expected without vertical padding`, () => { expect.objectContaining({ type: Text, props: { + style: { color: `#55EA13` }, children: `✓`, }, }),