# Text color field for categories missing after update

**URL:** https://meta.discourse.org/t/text-color-field-for-categories-missing-after-update/363090
**Category:** Bug
**Created:** [April 23, 2025, 3:49am UTC](https://meta.discourse.org/t/text-color-field-for-categories-missing-after-update/363090 "2025-04-23T03:49:10Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![AstonJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/astonj/32/215041_2.png) [@AstonJ](https://meta.discourse.org/u/AstonJ)
#### Post date: [April 23, 2025, 3:49am UTC](https://meta.discourse.org/t/text-color-field-for-categories-missing-after-update/363090/1 "2025-04-23T03:49:10Z")

</div>

When you edit a category the field for text color is missing (there’s usually one for color and one for text\_color).

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [April 23, 2025, 5:27am UTC](https://meta.discourse.org/t/text-color-field-for-categories-missing-after-update/363090/2 "2025-04-23T05:27:52Z")

</div>

@hugh / @lindsey could this be due to the refactor around allowing category icons?

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [April 23, 2025, 9:46am UTC](https://meta.discourse.org/t/text-color-field-for-categories-missing-after-update/363090/4 "2025-04-23T09:46:51Z")

</div>

It was removed in this PR  
[https://github.com/discourse/discourse/pull/32015](https://github.com/discourse/discourse/pull/32015)

> [@How to choose the category text color?](https://meta.discourse.org/t/how-to-choose-the-category-text-color/362654/3):
>
> The feature to choose the text color has been removed. Now Discourse automatically selects the color with better contrast. But I had the same problem you have, and Meta has (for example, in the category banners of #Support > WordPress, #Theme component and #Site feedback > Forum summaries ): on existing categories, this did not work. My texts were all white - even the ones on yellow. I saved the category settings again, and that fixed it. But it was quite annoying to check all categories and re-sa…

---

<div class="post-metadata">

### Author: ![patrickemin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/patrickemin/32/520162_2.png) [@patrickemin](https://meta.discourse.org/u/patrickemin)
#### Post date: [April 23, 2025, 2:22pm UTC](https://meta.discourse.org/t/text-color-field-for-categories-missing-after-update/363090/5 "2025-04-23T14:22:07Z")

</div>

Can we consider restoring this setting, as the automatic functionality does not seem to be fulfilling its purpose?

---

<div class="post-metadata">

### Author: ![lindsey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lindsey/32/318210_2.png) [@lindsey](https://meta.discourse.org/u/lindsey)
#### Post date: [April 23, 2025, 7:08pm UTC](https://meta.discourse.org/t/text-color-field-for-categories-missing-after-update/363090/7 "2025-04-23T19:08:31Z")

</div>

Hey folks, I’ve asked the engineer who worked on this feature to take a look to see if we can fix the issues with the automated text color so you don’t have to resave categories. We’ll be in touch with an update once we know more.

---

<div class="post-metadata">

### Author: ![AstonJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/astonj/32/215041_2.png) [@AstonJ](https://meta.discourse.org/u/AstonJ)
#### Post date: [April 23, 2025, 7:21pm UTC](https://meta.discourse.org/t/text-color-field-for-categories-missing-after-update/363090/8 "2025-04-23T19:21:48Z")

</div>

Thanks Lindsey. Can you also ensure we have the option to specify text colour ourselves please? We make extensive use of this on a number of forums, eg:

 ![Screenshot 2025-04-23 at 20.18.34](https://global.discourse-cdn.com/meta/original/4X/8/e/f/8ef56475246b28446b583bf016532c61dabc375c.png)

And:

 ![Screenshot 2025-04-23 at 20.21.13](https://global.discourse-cdn.com/meta/original/4X/d/f/9/df92592beb07ff0f5b0acfae3d2ff3010ca2dd11.png)

---

<div class="post-metadata">

### Author: ![AstonJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/astonj/32/215041_2.png) [@AstonJ](https://meta.discourse.org/u/AstonJ)
#### Post date: [May 7, 2025, 2:21am UTC](https://meta.discourse.org/t/text-color-field-for-categories-missing-after-update/363090/9 "2025-05-07T02:21:15Z")

</div>

> [@lindsey](#):
>
> We’ll be in touch with an update once we know more.

Just wondering if you’ve heard back or had a chance to look into this Lindsey?

---

<div class="post-metadata">

### Author: ![patrickemin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/patrickemin/32/520162_2.png) [@patrickemin](https://meta.discourse.org/u/patrickemin)
#### Post date: [May 15, 2025, 5:52pm UTC](https://meta.discourse.org/t/text-color-field-for-categories-missing-after-update/363090/11 "2025-05-15T17:52:01Z")

</div>

Hi, it’s getting worse, I created a subcategory which has automatically taken the wrong color, black instead or white and no way to change it…

![image](https://global.discourse-cdn.com/meta/original/4X/2/2/a/22a49b1c20aeb0a10a4d00d9423f948d9cfc346f.png)

---

<div class="post-metadata">

### Author: ![lindsey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lindsey/32/318210_2.png) [@lindsey](https://meta.discourse.org/u/lindsey)
#### Post date: [May 16, 2025, 2:20pm UTC](https://meta.discourse.org/t/text-color-field-for-categories-missing-after-update/363090/13 "2025-05-16T14:20:06Z")

</div>

Hey folks, thanks for your patience while we were working on this internally.

We are investigating improvements to the automatic text color system to ensure appropriate color contrast based on the selected category color. Because appropriate contrast is important but might be challenging for some admins to implement themselves, we believe this automated system will be helpful for most communities.

With that said, we understand that some communities may want more direct control over this. Here is a CSS snippet that you can use to customize the text color:

```plaintext
.category-list tr[data-category-id="1"] .badge-category__name {
  color: #000000;
}

```

(Note that you’ll need to add the right category ID and desired color code.)

We’ll consider returning category text color control to the UI based on user feedback, but this should give you a workaround for now.

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [May 16, 2025, 2:40pm UTC](https://meta.discourse.org/t/text-color-field-for-categories-missing-after-update/363090/14 "2025-05-16T14:40:28Z")

</div>

Are there also plans to

> [@lindsey](#):
>
> fix the issues with the automated text color so you don’t have to resave categories

?  
The banner of #Support > WordPress and some other categories are still very difficult to read

---

<div class="post-metadata">

### Author: ![davidb](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/davidb/32/554671_2.png) [@davidb](https://meta.discourse.org/u/davidb)
#### Post date: [May 16, 2025, 3:10pm UTC](https://meta.discourse.org/t/text-color-field-for-categories-missing-after-update/363090/17 "2025-05-16T15:10:06Z")

</div>

We will have a look into this. I saved this category again a few moments ago and the color is updated from white to black correctly. These shouldn’t need manually resaved though so I will investigate to see what is happening there.

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [May 16, 2025, 4:04pm UTC](https://meta.discourse.org/t/text-color-field-for-categories-missing-after-update/363090/18 "2025-05-16T16:04:53Z")

</div>

> [@lindsey](#):
>
> Because appropriate contrast is important but might be challenging for some admins to implement themselves, we believe this automated system will be helpful for most communities.
> 
> With that said, we understand that some communities may want more direct control over this. Here is a CSS snippet that you can use to customize the text color:

yea this is the way - make communities generally _easier_ to setup for less experienced admins, and then those who want more complex features, including admin controls, can add them with customizations.

and as logical as it sounds, admittedly i’m still trying to change my own discourse admin/power-user mindset to this. 🙃

I suppose a theme component could add back the category text customizing features. 🤔

---

<div class="post-metadata">

### Author: ![AstonJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/astonj/32/215041_2.png) [@AstonJ](https://meta.discourse.org/u/AstonJ)
#### Post date: [May 16, 2025, 8:26pm UTC](https://meta.discourse.org/t/text-color-field-for-categories-missing-after-update/363090/20 "2025-05-16T20:26:18Z")

</div>

> [@lindsey](#):
>
> We’ll consider returning category text color control to the UI based on user feedback

> [@davidb](#):
>
> We will have a look into this.

Thanks both. A good fix could simply be to revert back to what it was like and then simply pre-fill the field with what Discourse recommends. This retains flexibility while at the same time guides rookie admins.

> [@Lilly](#):
>
> yea this is the way - make communities generally _easier_ to setup for less experienced admins, and then those who want more complex features, including admin controls, can add them with customizations.

Hopefully my suggestion above would keep everyone happy - let Discourse suggest what it thinks is right but let Admins override easily.

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [May 17, 2025, 1:39pm UTC](https://meta.discourse.org/t/text-color-field-for-categories-missing-after-update/363090/21 "2025-05-17T13:39:30Z")

</div>

what about having an “Advanced Settings” button that then allows more granular settings to admins if they want them? 🤔

---

<div class="post-metadata">

### Author: ![lindsey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lindsey/32/318210_2.png) [@lindsey](https://meta.discourse.org/u/lindsey)
#### Post date: [June 2, 2025, 2:16pm UTC](https://meta.discourse.org/t/text-color-field-for-categories-missing-after-update/363090/23 "2025-06-02T14:16:24Z")

</div>

Hey folks — we’ve restored the text color field in category editing. This will autopopulate with an accessible option based on the selected category color, but can then be customized to a different option if desired.

Please give it a look once you’ve updated your sites and let us know if you see any issues.

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [June 2, 2025, 2:27pm UTC](https://meta.discourse.org/t/text-color-field-for-categories-missing-after-update/363090/24 "2025-06-02T14:27:11Z")

</div>

I know I’m repeating myself, but what about the fix for the existing categories? Do I have to check the settings for the existing categories myself? So far, I still see categories with hard-to-read banners, although I know for sure that the contrast was set correctly before white became the default text color. For example, #Customization > Theme component

---

<div class="post-metadata">

### Author: ![lindsey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lindsey/32/318210_2.png) [@lindsey](https://meta.discourse.org/u/lindsey)
#### Post date: [June 2, 2025, 2:32pm UTC](https://meta.discourse.org/t/text-color-field-for-categories-missing-after-update/363090/25 "2025-06-02T14:32:58Z")

</div>

> [@Moin](#):
>
> Do I have to check the settings for the existing categories myself?

Sorry you’ve had to repeat yourself, let me ask the team again and we will get back to you.

---

<div class="post-metadata">

### Author: ![patrickemin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/patrickemin/32/520162_2.png) [@patrickemin](https://meta.discourse.org/u/patrickemin)
#### Post date: [June 2, 2025, 10:29pm UTC](https://meta.discourse.org/t/text-color-field-for-categories-missing-after-update/363090/27 "2025-06-02T22:29:38Z")

</div>

> [@lindsey](#):
>
> Hey folks — we’ve restored the text color field in category editing.

Yes ! Good job ! 😀

---

<div class="post-metadata">

### Author: ![AstonJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/astonj/32/215041_2.png) [@AstonJ](https://meta.discourse.org/u/AstonJ)
#### Post date: [June 2, 2025, 11:08pm UTC](https://meta.discourse.org/t/text-color-field-for-categories-missing-after-update/363090/28 "2025-06-02T23:08:07Z")

</div>

Thanks Lindsey ❤

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [June 3, 2025, 6:15am UTC](https://meta.discourse.org/t/text-color-field-for-categories-missing-after-update/363090/29 "2025-06-03T06:15:19Z")

</div>



[Next page](https://meta.discourse.org/t/text-color-field-for-categories-missing-after-update/363090.md?page=2)
