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

Support svgIcon in mdc-tab #2268

Open
guillaumegarcia13 opened this issue May 27, 2020 · 0 comments
Open

Support svgIcon in mdc-tab #2268

guillaumegarcia13 opened this issue May 27, 2020 · 0 comments

Comments

@guillaumegarcia13
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant