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-backdrop visible=false not working #29177

Closed
3 tasks done
Sovai opened this issue Mar 19, 2024 · 2 comments
Closed
3 tasks done

bug: ion-backdrop visible=false not working #29177

Sovai opened this issue Mar 19, 2024 · 2 comments
Labels

Comments

@Sovai
Copy link

Sovai commented Mar 19, 2024

Prerequisites

Ionic Framework Version

v7.x

Current Behavior

ionic vue when set visible=false it still show up.

Expected Behavior

this should hide the backdrop

Steps to Reproduce

Code Reproduction URL

https://stackblitz.com/edit/m3udbc?file=src%2Fcomponents%2FExample.vue

Ionic Info

I am using "@ionic/vue": "^7.7.3"

Additional Information

No response

@liamdebeasi
Copy link
Contributor

liamdebeasi commented Mar 19, 2024

Thanks for the issue. I am going to close this as this is not a bug in Ionic Framework. The background CSS in your example is overriding the code we set to clear the backdrop opacity.

The visible property sets the background color of the backdrop to transparent but still receives click events. As a result, we do not hide it using display: none.

We set a .backdrop-hide class on the host element that sets background-color: transparent. However, since your CSS takes priority the transparent background is not taking effect.

You can fix this by changing your selector to ion-backdrop:not(.backdrop-hide).

@liamdebeasi liamdebeasi closed this as not planned Won't fix, can't repro, duplicate, stale Mar 19, 2024
Copy link

ionitron-bot bot commented Apr 18, 2024

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.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Apr 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants