angular / angular/components

Some Mat SVG Icons disappear on mat-sidenav close

Aperta
#16,467 11 commenti 2 reazioni 0 assegnatari Vedi su GitHub
area: material/icon P3
Lingua principale
TypeScript
Stelle
25k
Fork
6.8k
Merge medio
1g 8h
PR unite (30g)
91

Descrizione

#### 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

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia con le due riproduzioni StackBlitz collegate, angular-7-master-svg1 e angular-7-master-svg2, e confronta il comportamento di toggle di mat-sidenav con le icone SVG. Traccia l’interazione tra mat-sidenav e le icone SVG di Material, quindi verifica che il toggle di sidenav lasci visibili tutte le icone SVG, comprese quelle che attualmente scompaiono.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
angular, typescript
Ambito
frontend
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.