大家好!
我正在为 Discourse Follow 设置样式,随后我开始考虑针对以下内容的修改:
button[aria-label="Follow"] 或 button[aria-label="Following"]
请问是否可以通过 CSS 更改图标?如果是这样,就能实现从“关注”(user-plus)到“已关注”(user-check)的图标切换。
希望大家能帮帮我!
此致,
Felipe
编辑(解决方案):
耶!我通过用户对象引用进行了调整:
{{follow-toggle icon=(if user.following 'user-check' 'user-plus') user=user}}
谢谢大家!


