question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Icons cannot be overridden

See original GitHub issue

Hi! I can’t set custom icons for notifications. Options:

public notieOptions = {
    theClass: 'custom',
    position: ['top', 'right'],
    maxLength: 10,
    showProgressBar: false,
    pauseOnHover: true,
    animate: 'fromRight',
    icons: {
      success: '<i class="ico ok_green"></i>'
    }
  };

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:8
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
hindmarchcommented, Mar 30, 2017

I’ve managed to get this to work by specifying the icon after the notification’s been defined:

const notification = this.notificationService.success(toast.title, toast.message);
notification.icon = '<em class="fa fa-4x fa-check-circle"></em>';

Otherwise I’m unable to define my own icon at all.

0reactions
mkollerscommented, Aug 7, 2017

npm release 0.7.6 has solved it for me 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Icons are changed unexpectedly in Windows - Microsoft Support
Fixes an issue in which icons randomly change to different icons in Windows XP, Windows Vista, and Windows 7.
Read more >
Cannot override default Material UI Icon styling - Stack Overflow
Cannot override default Material UI Icon styling · It works using version 4.12. · Just recreated the issue in a codesandbox codesandbox.io/s/ ...
Read more >
Cannot override Font Awesome icon color in Bootstrap controls
Only one problem and that is I'm trying to override the icon color on hover when buttons, buttonedits and grid custom buttons ....
Read more >
Cannot override classes after huge icon size and default ...
Hi,. so I am having the same problem as other where to icon are hug when loading and that the default classes added...
Read more >
Can't override color of the icon (instance of a component)
Hello folks! I'm using Figma for a long time, but haven't seen this issue yet. I created a set of components for vector...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found