如何更改fluent-react-rect ui的命令栏的颜色?
这是我的代码。我想更改保持悬停效果的背景颜色。我该怎么做?
<CommandBar
styles={{
root: {
paddingLeft: 0,
paddingRight: 0,
selectors: {
"& .ms-OverflowSet-item:nth-child(4)": {
display: "flex",
flexGrow: 1,
},
},
},
}}
overflowItems={props.overflowItems}
items={props.items}
/>
官方文档=&gt; https:// https://developer.microsofter.microsoft.com/en-en-us/fluentuii #/controls/web/commandbar
预先感谢!
This is my code. And I want to change the background color maintaining the hovering effect. How can I do that?
<CommandBar
styles={{
root: {
paddingLeft: 0,
paddingRight: 0,
selectors: {
"& .ms-OverflowSet-item:nth-child(4)": {
display: "flex",
flexGrow: 1,
},
},
},
}}
overflowItems={props.overflowItems}
items={props.items}
/>
Official documentation => https://developer.microsoft.com/en-us/fluentui#/controls/web/commandbar
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在这里您...注入内联样式或根据需要创建共享组件
Here you go... inject inline style or create a shared component as needed