-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
bug: bundle includes custom styles to support very old IE versions which cause UI issues #26464
Comments
Thanks for the report. The I do see that |
In my case, this breaks the map ArcGIS layer displayed, it is not visible because its images have 0 width (this is due to the max-width: 100%; applied to the image which is rendered a child element of the leaflet canvas with width/height equal to 0) When I apply max-width: none; to the images everything starts to work. Please let me know if you need more details. P.S. I understand that this might need to be fixed on my end, but, why do we need those old IE fixes still being added (even if .browserslistrc says not to add IE support)? Thank you for the quick feedback. |
Thanks for the reply. Are you able to ensure
We do not need this anymore, so I am removing the IE-specific code in #26465. It looks like this was added years ago and never reevaluated when we dropped IE support. |
yes. adding the below to my app wide scss fixed my problem
Awesome. Thank you very much for the great support!!! P.S. if you don't mind, i will remove the screenshots from my previous post for the security reasons. thank you again |
Thanks for the issue. This has been resolved via #26465, and a fix will be available in an upcoming release of Ionic Framework. |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Prerequisites
Ionic Framework Version
Current Behavior
The latest ionic 6.x does not support old IE browser versions - see https://ionicframework.com/docs/reference/browser-support, however, the bundle created still includes styles to fix some UI issues for old IE browser versions. For example, https://github.com/ionic-team/ionic-framework/blob/main/core/src/css/normalize.scss#L37
Please note that those styles are still included even though the .browserslistrc does not include the line to support for IE or Edge altogether. For example, here is my *.browserslistrc file
The problem is that those fixes breaks some UI in my application (specifically, makes the images displayed with the wrong aspect ratio)
Expected Behavior
Not to include styles/fixes for unsupported/very old browsers
Steps to Reproduce
OR, you can clone this project https://github.com/ryaa/ionic-includes-old-ie-browser-styles, change to the project directory, run
npm install
and thenionic serve
and check the styles applied to the image displayed on the main page (see the step 4 above).Code Reproduction URL
https://github.com/ryaa/ionic-includes-old-ie-browser-styles
Ionic Info
Additional Information
See the style from from normalize.css applied to the image
The text was updated successfully, but these errors were encountered: