Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provision for custom styling to accept css class #47

Open
philipjohn007 opened this issue Nov 15, 2018 · 0 comments
Open

Provision for custom styling to accept css class #47

philipjohn007 opened this issue Nov 15, 2018 · 0 comments

Comments

@philipjohn007
Copy link

philipjohn007 commented Nov 15, 2018

I started using ngx-avatar recently in our project as it seemed to match all our requirements.

But I see that currently application of custom styling is through style property in ngx-avatar. There is no provision to accept css classes for this. We use variables in our scss classes and it would nice to reuse them for the custom styling of ngx-avatar as well. So it would be great to accept css classes also apart from the style property.

Due to the current approach of hard-coding the style in the component, we get the following warning as well.

WARN: 'WARNING: sanitizing unsafe style value [object Object] (see http://g.co/ng/security#xss).'

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

No branches or pull requests

2 participants