icon: Keep symbol viewBox value when register an iconSet
- Lenguaje dominante
- TypeScript
- Estrellas
- 25k
- Forks
- 6.8k
- Merge medio
- 1 d 8 h
- PR fusionados (30 d)
- 91
Descripción
#### 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
Guía de contribución
Línea de trabajo
En el issue no se menciona ningún archivo ni test. Empieza siguiendo el registro de iconSet y la creación de símbolos SVG; después, verifica que el viewBox personalizado de cada símbolo se conserve en el elemento SVG recién creado y añade cobertura para ese comportamiento.
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
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100