KingSora / OverlayScrollbars

A javascript scrollbar plugin that hides the native scrollbars, provides custom styleable overlay scrollbars, and preserves the native functionality and feel.
https://kingsora.github.io/OverlayScrollbars
MIT License
3.84k stars 214 forks source link

How to apply background to annoying empty square in the corner? #541

Closed szmarczak closed 12 months ago

szmarczak commented 1 year ago

Is your feature request related to a problem? Please describe.

image

Describe the solution you'd like

--os-corner-square-bg: rgb(30 30 30);

Describe alternatives you've considered

None yet.

Additional context

Minimal repro: https://stackblitz.com/edit/vitejs-vite-aknb3r?file=src%2FApp.svelte,src%2Fapp.css

KingSora commented 1 year ago

Good day @szmarczak :)

The corner element was available in the v.1 version of the plugin, but was removed in v2 due to various reasons. I'm thinking of bringing it back in the form of a plugin. Until then you can follow this workaround: https://github.com/KingSora/OverlayScrollbars/issues/518#issuecomment-1515761173

KingSora commented 12 months ago

@szmarczak Since version v2.4.2 plugins are now available and this issue can be solved with the plugin posted here: https://github.com/KingSora/OverlayScrollbars/issues/518#issuecomment-1771264156