angular / components

Component infrastructure and Material Design components for Angular
https://material.angular.io
MIT License
24.35k stars 6.74k forks source link

Material CDK overlay placing one panel on top of another panel #15674

Open HegdeSach opened 5 years ago

HegdeSach commented 5 years ago

What is the expected behavior?

I should be able to place any panel in the fore ground and any panel to the background of another panel

What is the current behavior?

In the given example Spaghetti panel is always placed on top of Tortellini panel. But I need to place Tortellini panel on top of Spaghetti panel. I should be able to change the positioning according to my requirement (Say panel with more z-index on top).

What are the steps to reproduce?

https://stackblitz.com/edit/overlay-demo-gxlgch

Click on Pasta 3 and then on Pasta 4, Spaghetti panel is placed on top of Tortellini panel. Click on Pasta 4 and then on Pasta 3, Now also Spaghetti panel is placed on top of Tortellini panel.

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Angular CLI: 6.0.8 Node: 8.11.2 OS: darwin x64 Angular: ...

Package Version

@angular-devkit/architect 0.6.8 @angular-devkit/core 0.6.8 @angular-devkit/schematics 0.6.8 @schematics/angular 0.6.8 @schematics/update 0.6.8 rxjs 6.2.2 typescript 2.7.2

"dependencies": { "@angular/animations": "^6.0.3", "@angular/cdk": "^6.4.0", "@angular/common": "^6.0.3", "@angular/compiler": "^6.0.3", "@angular/core": "^6.0.3", "@angular/flex-layout": "^6.0.0-beta.15", "@angular/forms": "^6.0.3", "@angular/http": "^6.0.3", "@angular/material": "^6.4.0", "@angular/platform-browser": "^6.0.3", "@angular/platform-browser-dynamic": "^6.0.3", "@angular/router": "^6.0.3" }

Is there anything else we should know?

If we attach panelClass to the panel while creating and assign some z-index, the parent div of this panel has static z index value of 1000. How can I change it so that I will be able to place the panel in any order I want.

angular-robot[bot] commented 2 years ago

Just a heads up that we kicked off a community voting process for your feature request. There are 20 days until the voting process ends.

Find more details about Angular's feature request process in our documentation.

angular-robot[bot] commented 2 years ago

Thank you for submitting your feature request! Looks like during the polling process it didn't collect a sufficient number of votes to move to the next stage.

We want to keep Angular rich and ergonomic and at the same time be mindful about its scope and learning journey. If you think your request could live outside Angular's scope, we'd encourage you to collaborate with the community on publishing it as an open source package.

You can find more details about the feature request process in our documentation.