Skip to content

Toggle between modals makes the backdrop too dark #36046

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

Closed
3 tasks done
tkrotoff opened this issue Mar 20, 2022 · 2 comments
Closed
3 tasks done

Toggle between modals makes the backdrop too dark #36046

tkrotoff opened this issue Mar 20, 2022 · 2 comments
Labels
stale Closed as stale

Comments

@tkrotoff
Copy link
Contributor

tkrotoff commented Mar 20, 2022

Prerequisites

Describe the issue

Toggle between modals makes the backdrop too dark during a short time because there are 2 div modal-backdrop with opacity 0.5 which adds up and becomes opacity 1.0.

Screenshot 2022-03-21 at 00 47 20

Screen.Recording.2022-03-21.at.00.46.24.mov

Can be verified with 5.1.3 and also using main.

Reduced test cases

https://getbootstrap.com/docs/5.1/components/modal/#toggle-between-modals

Can be best seen by slowing down the animation:

.fade {
  transition: opacity 1s linear; // instead of 0.15s
}

What operating system(s) are you seeing the problem on?

macOS

What version of Bootstrap are you using?

v5.1.3 and main

@tkrotoff
Copy link
Contributor Author

I don't think this is worth fixing

@oakleaf
Copy link

oakleaf commented Jan 23, 2024

How is this not worth fixing? I believe 200% it is, it looks like a glitch. I propose that if a backdrop already exists, do not populate a new one, re-use the old already existing one instead.

Or are there any solution to this yet?

@tkrotoff tkrotoff reopened this May 12, 2024
@mdo mdo added the stale Closed as stale label Apr 10, 2025
@mdo mdo closed this as not planned Won't fix, can't repro, duplicate, stale Apr 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Closed as stale
Projects
None yet
Development

No branches or pull requests

3 participants