# 即使样式为“无”，也应允许类别颜色选择

**URL:** <https://meta.discourse.org/t/category-color-selection-should-be-allowed-even-when-style-is-none/213745>\
**Category:** Bug\
**Created:** [2022年一月3日 19:37 UTC](https://meta.discourse.org/t/category-color-selection-should-be-allowed-even-when-style-is-none/213745 "2022-01-03T19:37:03Z")\
**Posts on this page:** 1\
**Showing post:** 8

<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:** [2022年二月21日 09:57 UTC](https://meta.discourse.org/t/category-color-selection-should-be-allowed-even-when-style-is-none/213745/8 "2022-02-21T09:57:22Z")

</div>

> [@pmusaraj](#):
>
> 换句话说，这是一个非常具体用例。

我也想指出，这实际上并非如此具体的用例。

正如 @mattdm 已经指出的那样，颜色不仅用于徽章或图标。当与“彩色类别”组件结合使用时，它还可以用于横幅和几乎任何页面元素。直接从类别设置中使用颜色的另一个优点是，您可以让社区经理自己更改主题中使用的颜色，而不是仅仅为了这个原因而联系主题设计者。

现在，当您不想使用带有颜色的核心徽章，但仍要在其他主题元素中使用类别颜色时，更改类别颜色的唯一方法是启用不同的徽章样式，更改颜色，然后重新启用无徽章样式。

我看到 @codinghorror 在另一个关于此的主题中提到了这个担忧：

> [@codinghorror](#):
>
> 我认为允许人们选择颜色然后发现它们不起作用是行不通的，这只会导致不同的支持请求。

但是正如所说，它可以在主题中产生许多效果。此外，已经有一个提示，说明：

![Screenshot from 2022-02-21 09-35-51](https://global.discourse-cdn.com/meta/original/3X/0/b/0bf7a7c2eca4d0a57f7f4ea0e60ae7cbb519579c.png)

那么为什么不保留该设置，而是给出类似这样的提示：

> ⚠ 您可能看不到颜色，因为您的类别样式为无。

---

_[View the full topic](https://meta.discourse.org/t/category-color-selection-should-be-allowed-even-when-style-is-none/213745)._
