i am using Fluent UI in my project. I dont know how to change hoover
style in CommandBar
.
I initializing my buttons with this simple code in javascript:
// inside `buttons` array
key: 'newfolder',
text: 'New Folder',
iconProps: {
iconName: 'NewFolder',
styles: {
root: {
color: 'orange'
},
rootHovered: {
color: 'red'
}
}
},
onClick: ...
Then i am passing this buttons to CommandBar
:
<CommandBar
items={buttons}
styles={{
root: {
paddingLeft: '5px'
},
}}
/>
and i can override default color to asked one.
My question is, how to set mouse hover color over button in CommandBar
component?
As you can see, it is still blue even if i passed red
as rootHovered color