更改<a>元素颜色darkmode.js

I add 3 icons from fontawesome and the color of the icons is like this

我想将图标的颜色设置为黑色。但是,当我添加dark模式.js并获得站点黑暗模式时,图标不会更改颜色,它们保持黑色且不会出现。我如何解决它 ?

评论
伤的太彻底
伤的太彻底

You could change the text color in dark mode by using the .darkmode--activated selector.

As we can't see your html lets suppose this icons have the class social-icons, you could create a css rule to change their color:

.darkmode--activated .social-icons {
  color: #fff;
}
点赞
评论