# 能否将侧边栏导航前面的背景色改为一个小图标？

**URL:** <https://meta.discourse.org/t/can-the-background-color-in-front-of-the-navs-in-the-sidebar-be-changed-to-a-small-icon/312024>\
**Category:** Product Support\
**Created:** [2024 年6 月 14 日 02:01 UTC](https://meta.discourse.org/t/can-the-background-color-in-front-of-the-navs-in-the-sidebar-be-changed-to-a-small-icon/312024 "2024-06-14T02:01:04Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

作者： ![manuel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/manuel/32/468169_2.png) [@manuel](https://meta.discourse.org/u/manuel)\
发布日期： [2024 年6 月 14 日 10:52 UTC](https://meta.discourse.org/t/can-the-background-color-in-front-of-the-navs-in-the-sidebar-be-changed-to-a-small-icon/312024/15 "2024-06-14T10:52:58Z")

</div>

> [@Moin](#):
>
> 你定义了颜色吗？

感谢提醒 🙂 我刚注意到这个问题并提交了一个 PR，这样当组件上没有定义颜色时，图标就会以默认的类别颜色进行渲染。

---

_[View the full topic](https://meta.discourse.org/t/can-the-background-color-in-front-of-the-navs-in-the-sidebar-be-changed-to-a-small-icon/312024)._
