Skip to content

md-icon used with addSvgIconSetInNamespace and <symbol> are invisible #4680

Closed
@adamdport

Description

@adamdport

Md-icons loaded using addSvgIconSetInNamespace appear in the DOM but are not visible. I suspect this is because the <symbol> tags are included, which will not be rendered without the <use> tag.

a symbol element itself is not rendered. Only instances of a symbol element (i.e., a reference to a symbol by a element) are rendered.
https://developer.mozilla.org/en-US/docs/Web/SVG/Element/symbol

I made a plunkr to demonstrate the issue: https://plnkr.co/edit/KYyfI0uBq2GYM2ElC1k3?p=preview

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions