To achieve a consistent styling for all checkboxes within your provider, you can customize the checkbox component styles in the theme provided to the provider.
Develop your own theme, apply desired styles, and then integrate it with the current theme you are using
Check out the code snippet here
import { Provider, teamsTheme, mergeThemes, ThemeInput } from '@fluentui/react-northstar';
const myTheme: ThemeInput = {
componentStyles: {
Checkbox: {
root: {
// Styles applied to the root-container component
},
checkbox: {
backgroundRepeat: "repeat",
},
label: {
// Styles applied to the label
},
}
}}
ReactDOM.render(
<Provider theme={mergeThemes(teamsTheme, myTheme)}>
<AppContainer>
<Component title={title} isOfficeInitialized={isOfficeInitialized} />
</AppContainer>
</Provider>,
document.getElementById('container')
);
Fix the checkbox rendering issue by adding:
backgroundRepeat: "repeat"