# Text color change based on parent group

**URL:** <https://forum.bubble.io/t/text-color-change-based-on-parent-group/163311>\
**Category:** Need help\
**Created:** [August 5, 2021, 8:35pm UTC](https://forum.bubble.io/t/text-color-change-based-on-parent-group/163311 "2021-08-05T20:35:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![portageusa](https://avatars.discourse-cdn.com/v4/letter/p/57b2e6/32.png) [@portageusa](https://forum.bubble.io/u/portageusa)\
**Post date:** [August 5, 2021, 8:35pm UTC](https://forum.bubble.io/t/text-color-change-based-on-parent-group/163311/1 "2021-08-05T20:35:50Z")

</div>

Hello!

This should be simple. I have a repeating group listing options, each index has an image and text wrapped into a group. I would like to have users click on the group and it change colors. I would also like to change the color of the text. For example when the parent group is clicked, change the background of the group to blue and then change the text from black to white so that it will be visible when the background is changed.

I am having some issues getting the text portion done. I know how to save the selection to a user list and add a conditional to the group changing the background from white to blue but cannot figure out the text portion.

Any assistance would be awesome.

Thanks!

---

<div class="post-metadata">

**Author:** ![colin-bubble](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/colin-bubble/32/92578_2.png) [@colin-bubble](https://forum.bubble.io/u/colin-bubble)\
**Post date:** [August 7, 2021, 2:01pm UTC](https://forum.bubble.io/t/text-color-change-based-on-parent-group/163311/2 "2021-08-07T14:01:34Z")

</div>

Hi there!

If you have the group changing color like you need it to you’re almost there! To get the text changing color as well you’ll need to add another conditional to the text element using the same condition you’re using on the group itself. Then use that conditional to change the “Font Color” attribute to white. Here’s the font color attribute for text elements in the conditional menu.

 ![Screen Shot 2021-08-07 at 9.58.41 AM](https://us1.discourse-cdn.com/bubble/original/3X/2/0/20fb4ab9e94d8088f737c1dd6e779e6dbc0344db.png)

Hope this helps!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [October 14, 2021, 8:36pm UTC](https://forum.bubble.io/t/text-color-change-based-on-parent-group/163311/3 "2021-10-14T20:36:24Z")

</div>

Closed on October 14, 2021, 8:36pm UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
