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 all classnames to options?

See original GitHub issue

What do you think about adding visible, horizontal and vertical classnames to options too? It’s not a huge deal but it adds minor inconveniences when dealing with CSS libraries that hash classnames.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
ghostcommented, Oct 12, 2018

I’d also like to be able to change the other class names, particularly the ‘visible’ one.

We use Bootstrap 4 which includes ‘visible’ also, defined as:

.visible {
    visibility: visible !important;
}

This means that even though a .simplebar-track has style="visibility: hidden;" the .simplebar-scrollbar inside has the visible class and so can be seen when it shouldn’t.

An alternative fix for my case would be to just prefix all the classes you use with simplebar- like you have done for some of them.

0reactions
Grsmtocommented, Nov 6, 2018

Closing this for now as we had a PR solving this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to add multiple classes to a ReactJS Component?
I found a breif answer here stackoverflow.com/a/36209517/4125588, just use JavaScript to join this classes, static or dynamic, with '+' operator, remember to ...
Read more >
classnames - npm
A simple utility for conditionally joining classNames together. Latest version: 2.3.2, last published: 4 months ago. Start using classnames ...
Read more >
Element.classList - Web APIs | MDN
Using classList is a convenient alternative to accessing an element's list of classes as a space-delimited string via element.className . Value.
Read more >
Using the classes Option - jQuery Learning Center
Syntax overview. The classes option is used to map structural class names to theme-related class names that you define. To see what this...
Read more >
HTML DOM Element className Property - W3Schools
Property Values · The class name(s) of an element. Separate multiple classes with spaces, like "test demo". ; class, The class name(s) of...
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