angular / angular/components

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

Abierto
#22,000 9 comentarios 1 reacción 0 asignados Ver en GitHub
area: material/snack-bar P3
Lenguaje dominante
TypeScript
Estrellas
25k
Forks
6.8k
Merge medio
1 d 8 h
PR fusionados (30 d)
91

Descripción

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!

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
angular, typescript
Área
frontend
Tipo de issue
Nueva funcionalidad
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
25/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.