question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: stacked modals missing backdrop and box-shadow (incl. repro)

See original GitHub issue

Bug Report

Ionic version: [x] 5.5.6

Current behavior: Stacking modals in ionic/core@5.6.6 I’m having issue with the backdrop and box-shadow of the 2nd modal. In my case it’s a “confirm dialog” on top of a “file gallery”. Looking at the HTML layering and CSS architecture all seems fine. z-indexes are in place just right. This is how it looks like:

image

I was able to fake the box-shadow on the small modal. But still I’m missing the covering effect of the backdrop over the 1. modal content. The rendered DOM:

image (1)

When I move the 2nd modal up in the DOM in the DevTools I get a bit closer but losing the shadow in the “big” modal:

image (2)

Outcome:

image (3)

I fiddled with all kinds of z-index variations without luck.

Expected behavior:

  • modal 1 is covered with backdrop of modal 2
  • modal 2 has box-shadow

Steps to reproduce: See repo: https://github.com/bitflower/modal-test

npm i npm start

Click button “Open Profile in Modal” Click button “Delete”

Related code: https://github.com/bitflower/modal-test

Ionic info:

This is a pure Stencil app. No framework. I never use the CLI hence the version below doesn’t matter.

Ionic:

   Ionic CLI : 5.4.16

Utility:

   cordova-res : not installed
   native-run  : not installed

System:

   NodeJS : v14.8.0
   npm    : 6.14.11
   OS     : macOS Catalina

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
DwieDimacommented, May 6, 2021

this was added on purpose, heres the issue

https://github.com/ionic-team/ionic-framework/issues/20800

you can add backdrop opacity by providing --backdrop-opacity: 0.3; to your modal.

1reaction
bitflowercommented, May 6, 2021
Read more comments on GitHub >

github_iconTop Results From Across the Web

Bootstrap: Open Another Modal in Modal - Stack Overflow
UPDATE: When you have stacked modals, all the backdrops appear below the lowermost modal. You can fix that by adding the following CSS:...
Read more >
Notebook cells are shown empty some times even when there ...
Issue Type: Bug See picture. It is unclear how to repro this issue. I had a notebook & multiple SQL windows open.
Read more >
material-ui/core/CHANGELOG.md - UNPKG
The development of v4 is limited to important bug fixes, security patches and ... 2190, - [ButtonGroup] Fix missing divider if background color...
Read more >
Bugs & Issues v5.X #2209 | Support Center - ABP Commercial
Seems the wwwroot folder is missing in the %USERPROFILE%\.dotnet\tools\.store\volo.abp.suite\5.0.0-rc.2\volo.abp.suite\5.0.0 ...
Read more >
Administering Oracle Identity Cloud Service
How to Use the Asserter With Multiple Instances of Oracle E-Business Suite ... There are two pricing models for Oracle Identity Cloud Service....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found