Skip to content
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: ion-modal handle transformZ results in blurry content on Windows #26159

Open
4 of 7 tasks
NeluQi opened this issue Oct 24, 2022 · 6 comments
Open
4 of 7 tasks

bug: ion-modal handle transformZ results in blurry content on Windows #26159

NeluQi opened this issue Oct 24, 2022 · 6 comments
Labels
package: core @ionic/core package type: bug a confirmed bug report

Comments

@NeluQi
Copy link

NeluQi commented Oct 24, 2022

Prerequisites

Ionic Framework Version

  • v4.x
  • v5.x
  • v6.x
  • Nightly

Current Behavior

When using ion-modal in the browser (From PC, windows 10, chrome last), the content is rendered fuzzy, as if in a small screen resolution (not clear text and all elements)

image

image

Example content outside of ion-modal
image

From a mobile device, the display is normal

Expected Behavior

Content stays blurry

Steps to Reproduce

unclear

Code Reproduction URL

No response

Ionic Info

Ionic:

Ionic CLI : 6.20.3
Ionic Framework : @ionic/vue 6.3.2

Capacitor:

Capacitor CLI : 4.4.0
@capacitor/android : 4.4.0
@capacitor/core : 4.4.0
@capacitor/ios : 4.4.0

Utility:

cordova-res : 0.15.4
native-run : 1.7.1

System:

NodeJS : v16.15.1 (C:\Program Files\nodejs\node.exe)
npm : 8.19.2
OS : Windows 10

Additional Information

No response

@ionitron-bot ionitron-bot bot added the triage label Oct 24, 2022
@amandaejohnston amandaejohnston added the ionitron: needs reproduction a code reproduction is needed from the issue author label Oct 24, 2022
@ionitron-bot
Copy link

ionitron-bot bot commented Oct 24, 2022

Thanks for the issue! This issue has been labeled as needs reproduction. This label is added to issues that need a code reproduction.

Please reproduce this issue in an Ionic starter application and provide a way for us to access it (GitHub repo, StackBlitz, etc). Without a reliable code reproduction, it is unlikely we will be able to resolve the issue, leading to it being closed.

If you have already provided a code snippet and are seeing this message, it is likely that the code snippet was not enough for our team to reproduce the issue.

For a guide on how to create a good reproduction, see our Contributing Guide.

@ionitron-bot ionitron-bot bot removed the triage label Oct 24, 2022
@NeluQi
Copy link
Author

NeluQi commented Nov 1, 2022

I found the reason for this.
It was css transform: translateZ(0px) in .modal-handle

I am attaching a video demonstration. When the transform property is turned off, the clarity of the image returns (the video was recorded from the chrome browser).

Blurring is hard to see on the video, but on a real monitor and browser it is very very visible.

fix it

Untitled.mp4

@NeluQi
Copy link
Author

NeluQi commented Nov 1, 2022

@amandaejohnston

ion-modal::part(handle){
transform: none !important;
}

Did not solve the problem, everything is exactly blurry.

When stretching the modal window up as much as possible, the blur disappears ( :initial-breakpoint="1")

Please fix it

@amandaejohnston
Copy link
Contributor

Could you provide a Github repo we can use to reproduce the issue?

@NeluQi
Copy link
Author

NeluQi commented Nov 2, 2022

@amandaejohnston > Could you provide a Github repo we can use to reproduce the issue?

https://github.com/NeluQi/bug-ionic-modal

In the test project, it is noticeably worse, but the problem still persists

image

@amandaejohnston amandaejohnston added triage and removed ionitron: needs reproduction a code reproduction is needed from the issue author labels Nov 2, 2022
@sean-perkins
Copy link
Contributor

sean-perkins commented Nov 9, 2022

@NeluQi thank you for the reproduction.

I am able to reproduce on Window 10 with the latest Chrome. I also verified that toggling the transformZ on the .modal-handle does cause the display to be clear.

We will track this as a bug.

Edit:

Using the following CSS does workaround the issue, but it must be a global style (not scoped):

ion-modal::part(handle) {
  transform: none !important;
}

@sean-perkins sean-perkins changed the title bug: ion-modal is not displayed clearly in the browser bug: ion-modal handle transformZ results in blurry content on Windows Nov 9, 2022
@sean-perkins sean-perkins added package: core @ionic/core package type: bug a confirmed bug report labels Nov 9, 2022
@ionitron-bot ionitron-bot bot removed the triage label Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: core @ionic/core package type: bug a confirmed bug report
Projects
None yet
Development

No branches or pull requests

4 participants
@sean-perkins @NeluQi @amandaejohnston and others