angular / angular/components

icon: Keep symbol viewBox value when register an iconSet

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

Descrizione

#### Bug, feature request, or proposal:
Bug

#### What is the expected behavior?
When registering an SVG iconSet, every symbol may provide a custom `viewBox` attribute. This attribute should be keep in the newly SVG element created.

#### What is the current behavior?
The `viewBox` attribute is swallowed.

#### What are the steps to reproduce?

#### What is the use-case or motivation for changing an existing behavior?

#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
At least since beta 7

#### Is there anything else we should know?
This is related to #5188 #2981
For SVG icon set with `symbol`, see

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Nell’issue non sono indicati file né test. Inizia tracciando la registrazione di iconSet e la creazione dei simboli SVG, quindi verifica che il viewBox personalizzato di ogni simbolo venga mantenuto nell’elemento SVG appena creato e aggiungi la copertura per questo comportamento.

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

Valutazione

Stack tecnologico
angular, typescript
Ambito
frontend
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 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.