angular / angular/components

help(Snackbar): Change z-index of snackbar without affecting Dialogs

オープン
#22,000 コメント 9 件 リアクション 1 件 担当者 0 名 GitHub で見る
area: material/snack-bar P3
主要言語
TypeScript
スター
25k
フォーク
6.8k
平均マージ
1日 8時間
マージ済み PR(30日)
91

説明

Hi, I need to change the z-index of the snackbar but im not able to do it.

I found that if I have the following class in styles.scss, I can indeed change the z-index but it also affects the Material Dialogs.

.cdk-overlay-container {
z-index: 99999999999999;
}

Any way I can only affect the Snackbars?

Thanks in advanced!

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Start with the styles.scss example and reproduce the z-index change on a Snackbar alongside a Material Dialog. Trace how the shared cdk-overlay-container affects both components and identify the existing Snackbar-specific entry point, if one is exposed. Done means the Snackbar stacking order can be changed without changing the Dialogs.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
angular, typescript
領域
frontend
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。