bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

Toggle between modals makes the backdrop too dark

Open tkrotoff opened this issue 3 years ago • 2 comments

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

https://user-images.githubusercontent.com/643434/159191366-f4afb8e6-370d-4e4d-be01-78132cf64d6c.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 avatar Mar 20 '22 23:03 tkrotoff

I don't think this is worth fixing

tkrotoff avatar Mar 24 '22 22:03 tkrotoff

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?

oakleaf avatar Jan 23 '24 19:01 oakleaf