-
-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CSS form label issue] #103
Comments
Hi @jano-gazashvili-axon, Best |
Hi @garronej, (before update/after update), i showed just @mui/material simple code which is responsible for text field and label, it works correctly before |
I don't question that there is a bug but it can't be narrowed down to the code you shared, TSS is simply not involved here. |
if i will update |
@jano-gazashvili-axon I am very willing to do whatever it takes to solve your issue but you have to help me help you. If you can't do either of these, try giving me as much context and code snippet as possible so I can figure out what's wrong. |
@garronej I noticed styles being lost once I updated to v4 as well, but only when I remove providing the cache, which is mentioned as not required here https://docs.tss-react.dev/update-to-v4#removing-noise. So seemingly not providing the cache, still won't work okay with v4. I will try to figure out what is the actual code that affects when I have time, but for now I put back the cache stuff. |
@garronej well, as far as I found, its styling unrelated to tss, so seemingly mui still needs the |
@jiby-aurum, Anyway if you could tell me what are the problematic components.... |
Oh noo, What options do you provide when creating the cache? |
@garronej yes, I already had Component was InputAdornment, code below <InputAdornment position="start" style={{ color: 'black' }}>
<Icons.Search40 />
</InputAdornment> it was not applying the style. See below the css |
@garronej yes I'm on |
Thank you for the detailed report, |
@garronej nope, does not work if |
@garronej well well well, its not that the styles are not inject, they are injected, with sorry did not notice it earlier, as I did not scroll down 🤭 |
@jiby-aurum, And when you provide no cache could you give me the same screen shot where I can see everything? |
@garronej I think multiple versions of However, I checked my node_modules and Find the styles without providing the cache, in this case, it seems to be just the css cache. |
Is Storybook involved? |
@garronej nope, btw, I was quickly checking where the two calls for |
@garronej I will rollback my updates to investigate a bit where I started to get the duplicate multiple emotion running warning, because with mui 5.8.0 and css 3.6.2, it was not there |
@garronej its really weird, I started to get the warning |
@garronej I have identified the issue, and it's the build system I am using which is vite. Seemingly with vite, in dev run, |
@garronej which means the solution for this should be very simple as well, to ship the es version as well. I see that currently |
@garronej I did quickly try it out and it fixes the problem for me, I opened a quick PR. Would appreciate if you can push a new version soon. |
@jano-gazashvili-axon This shoud be fixed now with the latest release. Thanks for reporting, Best regards, |
@garronej Hi! Still persists with version 4.1.3 With version 3.7.1 labels are OK, like on first screenshot of this comment With version 4.1.3 labels are broken, same as on second screenshot of mentioned comment |
Hi @ivan-romanchuk-axon, |
@ivan-romanchuk-axon Sorry I didn't find the time to get to it yet but I will. |
@ivan-romanchuk-axon Ok I see, it's a bug on the MUI side. <InputLabel
- classes={{ root: classes.label, error: classes.error }}
+ classes={{ error: classes.error }}
+ className={classes.label}
> |
Hi @ivan-romanchuk-axon, |
Hi @ivan-romanchuk-axon and @jano-gazashvili-axon this should be fixed in @mui/material 5.10.7. Best regards, |
Hello @garronej! Thanks for your feedback and commitment to this issues. Sorry, I was moving out and that's why — busy. I will try to check ASAP, at least in codesandbox. |
@ivan-romanchuk-axon No problem, you are wellcome, thank you for helping me figuring out what was wrong. I checked in the sandbox. It does work :) Best, |
Hello @garronej! I can confirm that labels are fixed. But it seems that in your PR for MUI |
Hey @ivan-romanchuk-axon,
Is that so ? Damn it! Woul you prepare me a Sandbox or better yet a demo repo where I can reproduce? Best regards. |
Thank toi for taking the time to produce a reproduction path. |
Hi @ivan-romanchuk-axon, Best regards, |
After updating
tss-react
from v3.7.1 to v4.0.0, the Form labels are changed and lost CSS, they have covered text fieldsThe text was updated successfully, but these errors were encountered: