Add all classnames to options?
See original GitHub issueWhat 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:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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:
This means that even though a
.simplebar-track
hasstyle="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.
Closing this for now as we had a PR solving this.