Rishabh Gusain
Rishabh Gusain

Reputation: 703

how to resize icons in ionic framework v4 and Angular 7

ngx-skycons is a library for icons

https://flexocarpius.github.io/ngx-skycons/demo

I'm trying to use this in the ionic project since it uses angular this icon lib is working fine but with one problem I can't resize icons.

This icon lib is port of https://github.com/darkskyapp/skycons

Hear is a stackblitz for experiments https://stackblitz.com/edit/angular-fyqwgu

Upvotes: 0

Views: 348

Answers (1)

MullisS
MullisS

Reputation: 278

you can do deactivating the ViewEncapsulation. Look in the following example and for more informations read https://angular.io/guide/component-styles.

import { Component,ViewEncapsulation } from '@angular/core';

    @Component({
      selector: 'my-app',
      templateUrl: './app.component.html',
      styleUrls: [ './app.component.css' ],
    encapsulation: ViewEncapsulation.None
    })
    export class AppComponent  {
      name = 'Skycons';
    }

best regards

Upvotes: 1

Related Questions