You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have found that changing a style globally can be achieved via customizing a theme by setting some of the colors parameters but I am not able to find how to set globally a color for a specific component, for instance the Icon component.
So I have declared:
const fluentTheme = {
...teamsLightTheme,
colorSubtleBackgroundHover: "transparent", // hover bg works for all components
colorNeutralForeground2BrandHover: "#0072ba", // changing color works for hovering
colorNeutralForeground2BrandPressed: "#0072ba" // is there any alternative to do that, it does not work
};
<FluentProvider theme={fluentTheme}>
...
But this code changes every element, not only icons.
I have only managed to do it like this but I want to make this in many places so it will end up being repetitive:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have found that changing a style globally can be achieved via customizing a theme by setting some of the colors parameters but I am not able to find how to set globally a color for a specific component, for instance the Icon component.
So I have declared:
But this code changes every element, not only icons.
I have only managed to do it like this but I want to make this in many places so it will end up being repetitive:
It would be ideal if I can define the icons background color, color on hover and the clicked color as well somewhere globally.
Beta Was this translation helpful? Give feedback.
All reactions