# الأيقونات لا تظهر في الشريط الجانبي إذا لم يتم تحديد اللون

**URL:** https://meta.discourse.org/t/icons-dont-show-up-in-the-sidebar-then-the-color-isnt-defined/277712
**Category:** UX
**Tags:** completed, category-icons
**Created:** [15 يونيو 2023، 3:22م UTC](https://meta.discourse.org/t/icons-dont-show-up-in-the-sidebar-then-the-color-isnt-defined/277712 "2023-06-15T15:22:05Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![manuel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/manuel/32/468169_2.png) [@manuel](https://meta.discourse.org/u/manuel)
#### Post date: [15 يونيو 2023، 3:22م UTC](https://meta.discourse.org/t/icons-dont-show-up-in-the-sidebar-then-the-color-isnt-defined/277712/1 "2023-06-15T15:22:05Z")

</div>

أحب أن الأيقونات تظهر الآن في الشريط الجانبي! ☀ 🕶

ما يبدو أنه خلل بسيط: الأيقونات لا تظهر عندما لا يتم تحديد اللون. على سبيل المثال، في لقطة الشاشة هذه، تم تحديد أيقونة للفئة الأولى، ولكن بدون لون. ثم لا تظهر الأيقونة:

 ![image](https://global.discourse-cdn.com/meta/original/4X/b/c/7/bc71b7cd969b7f4c4c4f0d76cae14d022a8be907.png)

العيب في تحديد جميع الأيقونات بالألوان هو أن الأيقونات لن تظهر بعد ذلك بألوان موروثة في طرق عرض القائمة (لون مميز عندما يكون الموضوع غير مقروء / باهت عندما يكون الموضوع مقروءًا). على سبيل المثال، هنا تظهر أيقونة الإعلانات بلون موروث، بينما تظل الأيقونة ذات اللون المحدد دائمًا كما هي:

 ![image](https://global.discourse-cdn.com/meta/original/4X/6/9/3/6939da7e6d915d5e10fe192b790e9f3eae55771b.png)

أعتقد أنه يجب أن تظهر الأيقونات ببساطة في الشريط الجانبي باللون الافتراضي للأيقونة للشريط الجانبي. ثم يعود الأمر للمستخدم إذا كان يريد تحديد لون ثابت أم لا.

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [5 سبتمبر 2023، 3:19م UTC](https://meta.discourse.org/t/icons-dont-show-up-in-the-sidebar-then-the-color-isnt-defined/277712/3 "2023-09-05T15:19:52Z")

</div>

عذرًا على التأخير هنا @manuel، هذا منطقي، لقد أضفت علامة #pr-welcome إلى الموضوع، أنا منفتح على النظر في طلب سحب (PR) يصلح هذه المشكلة. شكرًا!

---

<div class="post-metadata">

### Author: ![manuel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/manuel/32/468169_2.png) [@manuel](https://meta.discourse.org/u/manuel)
#### Post date: [14 يونيو 2024، 10:49ص UTC](https://meta.discourse.org/t/icons-dont-show-up-in-the-sidebar-then-the-color-isnt-defined/277712/4 "2024-06-14T10:49:58Z")

</div>

لقد قمت بطلب سحب بسيط لهذا: [FIX: Render sidebar icons when no color is defined by nolosb · Pull Request #32 · discourse/discourse-category-icons · GitHub](https://github.com/discourse/discourse-category-icons/pull/32)

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [14 يونيو 2024، 4:06م UTC](https://meta.discourse.org/t/icons-dont-show-up-in-the-sidebar-then-the-color-isnt-defined/277712/5 "2024-06-14T16:06:10Z")

</div>

شكرا، تم دمج الإصلاح الآن!

---

<div class="post-metadata">

### Author: ![md-misko](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/md-misko/32/126315_2.png) [@md-misko](https://meta.discourse.org/u/md-misko)
#### Post date: [15 يونيو 2024، 6:26م UTC](https://meta.discourse.org/t/icons-dont-show-up-in-the-sidebar-then-the-color-isnt-defined/277712/6 "2024-06-15T18:26:04Z")

</div>

> [@manuel](#):
>
> لقد قمت بإنشاء طلب سحب بسيط لهذا

للأسف، هذا التغيير يجعل الآن جميع الأيقونات _ذات_ الألوان المحددة باللون الرمادي.

أنا أستخدم

```plaintext
category,icon,categoryColour

```

---

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [15 يونيو 2024، 6:45م UTC](https://meta.discourse.org/t/icons-dont-show-up-in-the-sidebar-then-the-color-isnt-defined/277712/7 "2024-06-15T18:45:19Z")

</div>

نعم، الآن يتم استخدامه افتراضيًا إذا تركت اللون فارغًا. مع إزالة `categoryColor` يعمل بالنسبة لي.  
مثل هذا: `category,icon`

---

<div class="post-metadata">

### Author: ![md-misko](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/md-misko/32/126315_2.png) [@md-misko](https://meta.discourse.org/u/md-misko)
#### Post date: [15 يونيو 2024، 6:55م UTC](https://meta.discourse.org/t/icons-dont-show-up-in-the-sidebar-then-the-color-isnt-defined/277712/8 "2024-06-15T18:55:17Z")

</div>

> [@Don](#):
>
> الآن يستخدمه افتراضيًا إذا تركت اللون فارغًا

نعم، ولكنه يكسر التعريفات الحالية (لدي عدد لا بأس به).

@manuel هل تتكرم بتضمين اختبار categoryColo(u)r حتى لا نحتاج إلى إصلاح جميع التعريفات يدويًا في جميع الحالات الحالية؟ شكراً مقدماً!

---

<div class="post-metadata">

### Author: ![manuel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/manuel/32/468169_2.png) [@manuel](https://meta.discourse.org/u/manuel)
#### Post date: [15 يونيو 2024، 9:16م UTC](https://meta.discourse.org/t/icons-dont-show-up-in-the-sidebar-then-the-color-isnt-defined/277712/9 "2024-06-15T21:16:19Z")

</div>

حسنًا، هناك الكثير من الأشياء التي تحدث هنا مع الألوان 🙃

في الواقع، الإعلان قديم في كل من الشارات الافتراضية وفي الشريط الجانبي. فقط في الشارات الافتراضية، يفشل بصمت لأنه يتم تطبيقه على نمط مضمن:

 ![تُظهر الصورة مقتطفًا برمجيًا بقاعدة CSS للعنصر ".badge-category_icon"، والذي يضبط خاصية العرض إلى قيمة غير صالحة "inline-flex"، مما يتسبب في عرض رسالة الخطأ "قيمة خاصية غير صالحة". (تم تعليقه بواسطة الذكاء الاصطناعي)](https://global.discourse-cdn.com/meta/original/4X/0/3/0/030abfc1ca52a61652caa02992247a8cf358a089.png)

لقد قمت بإنشاء طلب سحب للانحدار في الشريط الجانبي: [FIX: Render legacy color declaration by nolosb · Pull Request #34 · discourse/discourse-category-icons · GitHub](https://github.com/discourse/discourse-category-icons/pull/34)

---

<div class="post-metadata">

### Author: ![Lhc\_fl](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lhc_fl/32/268115_2.png) [@Lhc\_fl](https://meta.discourse.org/u/Lhc_fl)
#### Post date: [15 يوليو 2024، 2:41ص UTC](https://meta.discourse.org/t/icons-dont-show-up-in-the-sidebar-then-the-color-isnt-defined/277712/11 "2024-07-15T02:41:00Z")

</div>


