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

Support svgIcon in mdc-tab #2268

@guillaumegarcia13

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

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