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 stays visible regardless of visible input #30742
Verified on 9.0.8. This is the same issue as #26953. The demo's CSS gives ion-backdrop its dark background from the page. visible="false" hides the backdrop by setting its background to transparent from inside the component's shadow root, and page CSS outranks shadow styles in the cascade, so the demo's background wins and the tint stays. Also note that visible only controls the tint: a backdrop with visible set to false still blocks clicks and taps by design, since overlays such as ion-modal rely on an invisible backdrop for showBackdrop together with backdropDismiss.
Workarounds, both verified on 9.0.8:
To tint the backdrop only while it is visible, scope your CSS so it does not apply when visible is false:
If you want the content behind it to be clickable, do not render the backdrop at all, for example with @if (showBackdrop) { <ion-backdrop></ion-backdrop> } in Angular.
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
[-]bug:[/-][+]bug:ion-backdrop stays visible regardless of visible input[/+]thetaPC commentedon Oct 17, 2026
Thanks for the report, and sorry for the delay.
Verified on 9.0.8. This is the same issue as #26953. The demo's CSS gives
ion-backdropits darkbackgroundfrom the page.visible="false"hides the backdrop by setting its background totransparentfrom inside the component's shadow root, and page CSS outranks shadow styles in the cascade, so the demo's background wins and the tint stays. Also note thatvisibleonly controls the tint: a backdrop withvisibleset tofalsestill blocks clicks and taps by design, since overlays such asion-modalrely on an invisible backdrop forshowBackdroptogether withbackdropDismiss.Workarounds, both verified on 9.0.8:
visibleisfalse:@if (showBackdrop) { <ion-backdrop></ion-backdrop> }in Angular.Closing this as a duplicate of #26953.
docs(backdrop): clarify that visible only controls the default backgr…
ionitron-bot commentedon Nov 16, 2026
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.