Trying to add linear gradient to a martialUI icon

空扰寡人 提交于 2021-02-11 14:22:34

问题


I'm trying to add a linear gradient to a material UI icon using the background-clip property but it just doesn't show up?

.social-icon{
    background: linear-gradient(to right bottom, #FD297B, #FF5864, #FF655B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

'''

<div className="social-icons">
  <FacebookIcon className="social-icon" fontSize="large" />
  <TwitterIcon className="social-icon" fontSize="large" />
  <InstagramIcon className="social-icon" fontSize="large" />
  <YouTubeIcon className="social-icon" fontSize="large" />
</div>

来源:https://stackoverflow.com/questions/65051364/trying-to-add-linear-gradient-to-a-martialui-icon

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!