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

fix(toast): remove backdrop-no-scroll for last toast overlay #30123

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tobiloeb
Copy link

@tobiloeb tobiloeb commented Jan 9, 2025

In case last overlay is a toast, the backdrop-no-scroll css class is removed from body.

closes #30112

Issue number: resolves #


What is the current behavior?

In case the last overlay that will be dismissed is a toast the "backdrop-no-scroll" css class is not removed from body tag.

What is the new behavior?

With this fix, the "backdrop-no-scroll" class will be removed from body tag in case last overlay will be dismissed (for toasts as well).

Does this introduce a breaking change?

  • Yes
  • [x ] No

Other information

This PR is related to the following issue: #30112

In case last overlay is a toast, the backdrop-no-scroll css class is removed from body.

closes ionic-team#30112
@tobiloeb tobiloeb requested a review from a team as a code owner January 9, 2025 09:52
@tobiloeb tobiloeb requested a review from joselrio January 9, 2025 09:52
Copy link

vercel bot commented Jan 9, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ionic-framework ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 9, 2025 9:55am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: core @ionic/core package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: ion-toast does not remove backdrop-no-scroll from body when dismiss
1 participant