ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

ActionSheet not showing because `.action-sheet-backdrop` has no `z-index`

Open cxyokk opened this issue 12 years ago • 7 comments

When showing an ActionSheet, a <div class="action-sheet-backdrop"> will be appended to <body>. The div is not showing because its z-index is not set and it's being covered by something else(e.g. by the <pane nav-router> in the seed project).

z-index is set to 10 for .action-sheet, though, but that won't help because .action-sheet is wrapped in .action-sheet-backdrop.

Adding z-index here should work, but i am not sure if that's the right place to fix this.

cxyokk avatar Dec 11 '13 10:12 cxyokk

I also had this issue, I fixed it locally(should have thrown an issue up).

ncammarata avatar Dec 11 '13 10:12 ncammarata

Seems adam merged this. Thanks!

mlynch avatar Dec 12 '13 17:12 mlynch

Wow, cool! My first PR on github got accepted~~~

cxyokk avatar Dec 12 '13 17:12 cxyokk

Yeah looks good, thanks. And I think I'll start organizing all the z-index values in the variables.scss file too.

adamdbradley avatar Dec 12 '13 17:12 adamdbradley

@cxyokk that calls for a celebration! :cake: :wine_glass: :cocktail: :tropical_drink:

:) Hope to see more!

mlynch avatar Dec 12 '13 17:12 mlynch

https://github.com/driftyco/ionic/commit/aae39e64f58a75fe3d60c1f481ac5bb082564ea9#diff-d8ee409a461718bfb6240710c8c73382L544

adamdbradley avatar Dec 12 '13 17:12 adamdbradley

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.

ionitron-bot[bot] avatar Sep 06 '18 02:09 ionitron-bot[bot]