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 also have responsiveFontSizes() wrapper around the theme.
Problem is that when I explicitly set a fontSize for a component in makeStyles(), the responsiveFontSizes are overriding the fontSize. When I inspect the DOM I can see that the generated classes for MUI components are correctly prefixed with mui but the classes generated by makeStyles() from tss-react are missing the prefix, thus not taking priority over other styles.
The problem is that the component is not setting css classNames at all.
I don't know what you mean by that.
When I inspect the DOM I can see that the generated classes for MUI components are correctly prefixed with mui but the classes generated by makeStyles() from tss-react are missing the prefix
Which prefix? The tss prefix?
I can fix your problem if you can provide a minimal reproduction repo with a clear explaination of what isn't working as you expect.
If there's a bug, Il'll fix it, if this is a configuration issue on your end I'll let you know.
The problem is that the component
<TssCacheProvider>
is not setting css classNames at all. My structure is the following taken from the documentation:I also have responsiveFontSizes() wrapper around the
theme
.Problem is that when I explicitly set a
fontSize
for a component in makeStyles(), theresponsiveFontSizes
are overriding thefontSize
. When I inspect the DOM I can see that the generated classes for MUI components are correctly prefixed withmui
but the classes generated bymakeStyles()
fromtss-react
are missing the prefix, thus not taking priority over other styles.The installed versions are the following:
The node version used is
12.22.12
.Any ideas why this happens and how to resolve it ?
The text was updated successfully, but these errors were encountered: