I want to change the border radius of all my input field of my project. For example for the TextField component I want
instead of
. According to the Mui v5 docs I should set my theme to
const theme = createTheme({
components: {
MuiOutlinedInput: {
styleOverrides: {
root: {
borderRadius: 16
},
}
}
}
})
If I do this in a sandbox, then this works.
https://codesandbox.io/s/globalthemeoverride-material-demo-forked-iebvrr?file=/demo.tsx:239-384
If I do this in my project, then this does not work.
For a TextField component the div that is impacted is

In the sandbox the style sheet associated to that div is
In my project the style sheet associated to that div is
The difference is that the classes MuiOutlinedInput-root and MuiInputBase-root don't appear in the sandbox whereas they do appear in the project. What setting causes these classes to not change the style sheet, and how should I change the theme to get the changed borderRadius in my project too?

