Closed ajiho closed 3 months ago
Sorry, it was fixed by upgrading to OverlayScrollbars2.7.1 I am closing it now 🤣
Good day @ajiho :)
This works since v2.7.1 because I was forced to move a part of the css into the js bundle because of an bug in safari. This could change in the future and therefore break your implementation.
The styles of overlayscrollbars are not designed to be placed inside of an namespace. - I would recommend not to use the styles in this way.
issues#623
This issue mentions that scss directly imports the overlayscrollbars.css file
The method is as follows
The compilation result is as follows:
There is no problem using it this way.
However, I want the style of OverlayScrollbars to be in my namespace, such as under. my naming space
The compiled results obtained are as follows
The scrollbar will always appear, and your scrollbar style will also take effect simultaneously, making the effect abnormal
After my own attempts, I found that simply mentioning the following styles globally can make them work properly
I will express myself as clearly as possible, which will help you solve the problem instead of reproducing it
Your document mentions: This is very useful if you have a fixed DOM structure and don't want OverlayScrollbars to generate its own elements. Those cases arise very often when you want an other library to work together with OverlayScrollbars.
Yes, I am using it in conjunction with other libraries and OverlayScrollbars, so I hope to make the styles of OverlayScrollbars only work under my style and become a complete part of my library, avoiding it from taking effect globally
stackblitz