angular / angular/components

Some Mat SVG Icons disappear on mat-sidenav close

Abierto
#16,467 11 comentarios 2 reacciones 0 asignados Ver en GitHub
area: material/icon P3
Lenguaje dominante
TypeScript
Estrellas
25k
Forks
6.8k
Merge medio
1 d 8 h
PR fusionados (30 d)
91

Descripción

#### Reproduction

Use StackBlitz to reproduce your issue: https://stackblitz.com/edit/angular-7-master-svg1

Steps to reproduce:
1. Setup shared components for svg icon, sidebar content and page content alongside the ability to toggle mat-sidenav.
2. Toggle Sidenav and see all svg icons on the page get disappeared on sidenav close and re-appear on sidenav open.


#### Expected Behavior

No svg icon should disappear from the page.

#### Actual Behavior

Toggling Sidenav makes all svg icons on the page disappear on sidenav close and re-appear on sidenav open. Moreover, if you inspect the html output of page and components, you will see that svg icons are still present there, with no change in attributes, html, etc. Furthermore, this bug happens with some icons only (not sure what is the differentiator as there's dozens of icons in our locally under-development app that exhibit this weird bug, but there are also some that don't), for example, svg icon in this stackblitz works correctly. https://stackblitz.com/edit/angular-7-master-svg2

#### Environment

- Angular: 7.2.8
- CDK/Material: 7.3.3
- Browser(s): Google Chrome Version 75.0.3770.100 (Official Build) (64-bit) and Version 71.0.3578.80 (Official Build) (64-bit)
- Operating System (e.g. Windows, macOS, Ubuntu): Cent OS and Windows 10

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Comienza con las dos reproducciones enlazadas de StackBlitz, angular-7-master-svg1 y angular-7-master-svg2, y compara el comportamiento del toggle de mat-sidenav con los iconos SVG. Rastrea la interacción entre mat-sidenav y los iconos SVG de Material y, a continuación, verifica que alternar sidenav deje visibles todos los iconos SVG, incluidos los iconos que actualmente desaparecen.

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
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.