# Bug in text default colour

**URL:** <https://community.appfarm.io/t/bug-in-text-default-colour/1474>\
**Category:** Bug reports\
**Created:** [October 28, 2024, 12:44pm UTC](https://community.appfarm.io/t/bug-in-text-default-colour/1474 "2024-10-28T12:44:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Theo](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/theo/32/1672_2.png) [@Theo](https://community.appfarm.io/u/Theo)\
**Post date:** [October 28, 2024, 12:44pm UTC](https://community.appfarm.io/t/bug-in-text-default-colour/1474/1 "2024-10-28T12:44:36Z")

</div>

There appears to be a bug in the Text control’s default colour value when adding it to Views and Dialogs.

If I add a text control on a drawer and leave the colour property empty, then it will default to the primary text colour defined in the theme, which is what I would expect.  
However, if I do the same and add a text control to either a dialog or a view, then the default colour will be plain black, even though we have defined another colour in our theme. Would be great if this could default to primary text colour as well 🙂

---

<div class="post-metadata">

**Author:** ![isabelslorer](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/isabelslorer/32/856_2.png) [@isabelslorer](https://community.appfarm.io/u/isabelslorer)\
**Post date:** [October 29, 2024, 2:21pm UTC](https://community.appfarm.io/t/bug-in-text-default-colour/1474/2 "2024-10-29T14:21:43Z")

</div>

Hi,

Can you specify what you mean by “text control” color?

If I understand your problem correctly the color you set as the primary text color in the theme is not being updated in dialogs and views, but defaults to black. If this is the case, I have not managed to recreate the bug, but would be great with some more context to understand your problem better.

If you can provide some screenshots to show what happens that would be useful 🙂

---

<div class="post-metadata">

**Author:** ![Theo](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/theo/32/1672_2.png) [@Theo](https://community.appfarm.io/u/Theo)\
**Post date:** [October 29, 2024, 3:05pm UTC](https://community.appfarm.io/t/bug-in-text-default-colour/1474/3 "2024-10-29T15:05:04Z")

</div>

Yes, you are correct! I meant the Text UI Component - Control is the name from Power Apps, so was a slight mix up on my part.

That is strange, I will add some screenshots.  
I have set my theme primary colour to signal red to make it easier to spot the difference:

![image](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/2X/0/021ab2c22d0341a31bd657fb81028c9effcd902d.png)

When I add the Text UI Component to a view, it automatically becomes black unless I override the colour manually:  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/2X/6/64abdc2a6f32393226159c8accf85c3bb0de563a.png)

However, when adding it inside a drawer, it automatically adopts the primary colour:  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/2X/1/185f4ff4bc5a544fc1481819c69ac034d40b4c16.png)

Hope this isn’t something that is just happening in our solution

---

<div class="post-metadata">

**Author:** ![isabelslorer](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/isabelslorer/32/856_2.png) [@isabelslorer](https://community.appfarm.io/u/isabelslorer)\
**Post date:** [October 30, 2024, 2:40pm UTC](https://community.appfarm.io/t/bug-in-text-default-colour/1474/4 "2024-10-30T14:40:29Z")

</div>

Interesting. I think I discovered the problem here.

This appears if you have given your view/container a background color “manually.” In other words, when not adopting the default background color set by the theme, the color of the text will change to either black or white, depending on which best contrasts with the background.

 ![Skjermbilde 2024-10-30 kl. 15.05.44](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/2X/d/d7c012e24a1573f71a312641cbf4b8a1760334a1.png)

I am not sure if this is on purpose, but I will report the case. I recommend that you either use the default background color or manually change the color of the text.

Hope this solves your issue!

---

<div class="post-metadata">

**Author:** ![isabelslorer](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/isabelslorer/32/856_2.png) [@isabelslorer](https://community.appfarm.io/u/isabelslorer)\
**Post date:** [October 30, 2024, 6:45pm UTC](https://community.appfarm.io/t/bug-in-text-default-colour/1474/5 "2024-10-30T18:45:26Z")

</div>

Actually, what you can do is add a color to the specific text you are using in the theme. This will always overwrite the text color.

 ![Skjermbilde 2024-10-30 kl. 19.43.58](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/2X/b/b0472be5a229e8340045af581e9e8d825ed9ab6b.png)

 ![Skjermbilde 2024-10-30 kl. 19.40.44](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/2X/5/5474b69005a3f0413af07a3d50fc9b49c5f6f806.png)

---

<div class="post-metadata">

**Author:** ![Theo](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/theo/32/1672_2.png) [@Theo](https://community.appfarm.io/u/Theo)\
**Post date:** [October 31, 2024, 1:54pm UTC](https://community.appfarm.io/t/bug-in-text-default-colour/1474/6 "2024-10-31T13:54:53Z")

</div>

Amazing, thanks for the tip! 😃
