-
-
Notifications
You must be signed in to change notification settings - Fork 676
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
Flex layout issue in IE11 (includes fix suggestion) #572
Comments
Set toast body to 100% width, to allow child elements to consume all available space on older browsers (e.g. IE11). Fixes fkhadra#572
Never mind my question. I realized that I can just override the class style in a new scss file and include, that will override the body. :) |
@bmolnar2 Hi Bence, I'm not sure what you mean when you refer to removal of |
@jkamleh, sorry, I did not link the change. It wasn't #573 , but this: 468d545 For my case, the solution was to override the style in SCSS. Obviously not with the change you proposed, but whatever is necessary (e.g. adding back The point is that you can customize certain class styles of the lib, so unless that was a change concerning every user, it doesn't make sense to revert any piece of change for my case. (Not like anyone was considering it. :D) |
@bmolnar2 tbh I don't remember why I've removed |
Ok, I remember why I did it... I forgot to revert this thing 🤣 |
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
![image](https://user-images.githubusercontent.com/14323780/108926899-382ff500-768f-11eb-9f62-8ee346d9531f.png)
Using flex layout (Bootstrap 4) inside
Toastify__toast-body
class has issues rendering in IE11, works fine in latest Chrome. Example is with one fixed column width (col-md-3) and second column dynamic (col):Proposed fix:
As other users may encounter this while trying to support IE11, suggest adding
width: 100%;
style by default inreact-toastify/scss/_toast.scss
Lines 39 to 42 in 7ec5040
I'm temporarily fixing this by applying the following in my CSS, please advise if this above recommendation is suitable, if so I can create a PR (or feel free to apply):
What is the expected behavior?
![image](https://user-images.githubusercontent.com/14323780/108926927-45e57a80-768f-11eb-83bc-1337582acc7e.png)
Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
React 16.8.6, Windows, Internet Explorer 11
The text was updated successfully, but these errors were encountered: