MUI 自定义变体不继承根样式
https://codesandbox.io/s/crimson-glade-tfix6s
我希望我的自定义变体具有与要继承的主题内全局设置的相同样式。然而,它似乎没有发生
variants: [
{
props: { variant: "icon", size: "large" },
style: {
color: "inherit",
background: "inherit"
}
}
]
https://codesandbox.io/s/crimson-glade-tfix6s
I have some custom variants and I would like these to take the colours from the theme which I have defined on palette.
I would like my custom variants to have the same styling that is globally set inside the theme to be inherited. However it does not seem to be happening
variants: [
{
props: { variant: "icon", size: "large" },
style: {
color: "inherit",
background: "inherit"
}
}
]
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论