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.

Add custom css class to via options

See original GitHub issue

I cannot add my custom css class to the notification component. What i tried to do is: put the style class it via options:

public options = { position: [“bottom”, “right”], timeOut: 3000, theClass: “myClass” }

And myClass is in written in my component.scss. What i’m doing wrong`?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
flauccommented, Nov 6, 2017

Passing an object like this might do the trick:

{
  'base': {some styles},
  'title': {some styles},
  'contenct': {some styles}
}

What do you think?

1reaction
CHBakercommented, Nov 6, 2017

Alright. just an idea, is there a way you could add direct styles as a parameter to the notification object? For example, the user could pass in an object of custom styles, similar to the way angular animations passes a styles object?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Add Custom CSS Classes to WPForms
To add a custom CSS class name for either option, open the form builder and go to Settings » General. From here, go...
Read more >
How To Create Classes With CSS | DigitalOcean
In this tutorial, you will create a CSS class selector, which will allow you to apply CSS rules only to HTML elements that...
Read more >
How to add a css class to select option? - Stack Overflow
$('select>option:eq(1)').addClass("custom_class");. Here eq() method : Reduce the set of matched elements to the one at the specified ...
Read more >
How to apply "Use Custom CSS Class" in analysis
Then, type "MyCell" in the "Use Custom CSS Class" textbook. ... Did you tried via Analysis(Criteria) Column properties option
Read more >
2 Ways to Add WordPress Custom CSS + Common Errors
You can add multiple CSS classes to one block by separating them with spaces. Adding WordPress Custom CSS via Plugins.
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