# 自定义链接文本格式的最佳方法？

**URL:** <https://meta.discourse.org/t/best-way-to-customise-the-formatting-of-the-link-text/277619>\
**Category:** Development\
**Tags:** custom-header-links\
**Created:** [2019 年5 月 1 日 14:31 UTC](https://meta.discourse.org/t/best-way-to-customise-the-formatting-of-the-link-text/277619 "2019-05-01T14:31:39Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

作者： ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)\
发布日期： [2021 年2 月 11 日 17:23 UTC](https://meta.discourse.org/t/best-way-to-customise-the-formatting-of-the-link-text/277619/7 "2021-02-11T17:23:26Z")

</div>

> [@manuel](#):
>
> 这可能与颜色声明从 SCSS 切换到 CSS 变量有关。

是的，确实如此。该组件现在使用 CSS 自定义属性，应该能为您修复此问题，@Daniel_R，您只需更新该组件即可。

---

_[View the full topic](https://meta.discourse.org/t/best-way-to-customise-the-formatting-of-the-link-text/277619)._
