You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: ion-backdrop visible=false not working #29177
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).
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.
Activity
liamdebeasi commentedon Mar 19, 2024
Thanks for the issue. I am going to close this as this is not a bug in Ionic Framework. The
backgroundCSS in your example is overriding the code we set to clear the backdrop opacity.The
visibleproperty sets the background color of the backdrop totransparentbut still receives click events. As a result, we do not hide it usingdisplay: none.We set a
.backdrop-hideclass on the host element that setsbackground-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).ionitron-bot commentedon 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.