Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Support svgIcon in mdc-tab #2268

Description

@guillaumegarcia13

Is your feature request related to a problem? Please describe.
I wanted to use svgIcon previously declared within mdc-tab but this seens unsupported.
svg Icon was declared like this:

constructor(
        public iconRegistry: MdcIconRegistry, 
        public sanitizer: DomSanitizer
    ) { 
        iconRegistry.addSvgIcon('custom', sanitizer.bypassSecurityTrustResourceUrl('/assets/images/custom.svg'));
    }

Describe the solution you'd like
I would like to be able to use svgIcon like this:

<mdc-tab>
    <mdc-icon mdcTabIcon>favorite</mdc-icon>
    <mdc-icon mdcTabIcon svgIcon="custom"></mdc-icon>  <!-- <=== Here -->
    <mdc-tab-label>Title</mdc-tab-label>
</mdc-tab>

Describe alternatives you've considered
Not using svgIcon

Additional context
None

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions