When you edit a category the field for text color is missing (there’s usually one for color and one for text_color).
It was removed in this PR
Can we consider restoring this setting, as the automatic functionality does not seem to be fulfilling its purpose?
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.
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:
And:
Just wondering if you’ve heard back or had a chance to look into this Lindsey?
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…
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:
.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.
Are there also plans to
?
The banner of Support > WordPress and some other categories are still very difficult to read
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.
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.
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.
Hopefully my suggestion above would keep everyone happy - let Discourse suggest what it thinks is right but let Admins override easily.
what about having an “Advanced Settings” button that then allows more granular settings to admins if they want them?
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.
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, Theme component
Sorry you’ve had to repeat yourself, let me ask the team again and we will get back to you.
Yes ! Good job !
Thanks Lindsey