I add 3 icons from fontawesome and the color of the icons is like this
我想将图标的颜色设置为黑色。但是,当我添加dark模式.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: