# Icons in front of boxed categories title should be the same color as the text in the search results preview

**URL:** <https://meta.discourse.org/t/icons-in-front-of-boxed-categories-title-should-be-the-same-color-as-the-text-in-the-search-results-preview/246418>\
**Category:** UX\
**Created:** [November 22, 2022, 3:04pm UTC](https://meta.discourse.org/t/icons-in-front-of-boxed-categories-title-should-be-the-same-color-as-the-text-in-the-search-results-preview/246418 "2022-11-22T15:04:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)\
**Post date:** [November 22, 2022, 3:04pm UTC](https://meta.discourse.org/t/icons-in-front-of-boxed-categories-title-should-be-the-same-color-as-the-text-in-the-search-results-preview/246418/1 "2022-11-22T15:04:17Z")

</div>

On private categories, there’s a padlock icon in front of the category title.

I use “box” for the **category style** setting.

 ![image](https://global.discourse-cdn.com/meta/original/4X/5/f/2/5f2de46d2a36a605a64af43ba4ecc9820b18d063.png)

Whatever the category background color is, the padlock uses `var(--primary-medium)` for its own color, which is grey in my case.

This color is used in the search result preview for the padlock:

 ![image](https://global.discourse-cdn.com/meta/original/4X/4/2/a/42af85a73d9f688008db9218b446cd552ae2a50e.png)  
 ![image](https://global.discourse-cdn.com/meta/original/4X/e/6/4/e64d7833cb7191dab0e297d1e9b459f6ff7975b4.png)

I didn’t see this issue on other pages. For example, padlocks are white on the full search result page:

 ![image](https://global.discourse-cdn.com/meta/original/4X/e/d/0/ed085d4af04e78fe7ffc29d1463823dc42233c0b.png)

* * *

My suggestion is that in the search result previews, the icons in front of a category title when using a boxed style should be the same color as the text (for example, white on a dark background).
