-
-
Notifications
You must be signed in to change notification settings - Fork 133
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
Components outside html component get resized #1420
Comments
Thanks for opening the issue @kinga112, can you provide a reproducible example using StackBlitz (JavaScript)? |
I am not sure how I can display the issues I can try to get the html string for you, but I don't know how to reproduce and I don't know why certain html strings affects other components. |
Here is the html string from the 3rd image:
|
It mostly affects icon images, but I have noticed that font/text sizes can change too based on the parsed html. |
Some cases where component styles can affect other components is with identical class names, but I am using tailwind. |
Do you think it's related to #1302? |
I tried replaceAll('!important', '') but it did not change anything. |
Seems like the css values are affecting my react components somehow. |
My recommendation is to try to use dangerouslySetInnerHTML to test whether the issue is coming from your React components or this library. There's a possibility that it's unrelated to this library. |
This still occurs with dangerouslySetInnerHTML |
Does this library just use |
If this still happens with This library does not use |
Okay thanks! |
Expected Behavior
Components outsize html parser do not get resized
Actual Behavior
Some Elements outside of html parsed component are resized.
Steps to Reproduce
click button to display email, which fetches html string from backend/imap.
only a small percentage of emails resize other elements in the application, but its a major issue.
I tried scaling down the component but it still effects other components.
I attached images that show different results that have updated other components in the UI.
Capture4 shows the normal expected result.
Reproducible Demo
Environment
Keywords
Unwanted resize
The text was updated successfully, but these errors were encountered: