Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

icon: forces you to mark glyphs with id attribute #11662

Open
@oliversalzburg

Description

@oliversalzburg

Bug, enhancement request, or proposal:

Bug/enhancement

Detailed Reproduction Steps:

Try to load a .svg that doesn't mark individual glyphs with id. Like so:

  $mdIconProvider
    .defaultIconSet('http://materialdesignicons.com/cdn/3.5.95/fonts/materialdesignicons-webfont.svg')

What is the expected behavior?

You can use the glyphs from the SVG.

What is the current behavior?

You can't, because the glyphs are identified by a glyph-name attribute instead of an id attribute.

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

Integrating such an SVG is overly and needlessly complicated by the fact that the MdIconService does not allow more flexibility in the lookup process and it is not easily decorated.

Which versions of AngularJS, Material, OS, and browsers are affected?

  • AngularJS: 1.7.7
  • AngularJS Material: 1.1.13

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions