Conditional showing of default scrollbar for non-javascript users? #702
Unanswered
CHooverShrimp
asked this question in
Q&A
Replies: 1 comment
-
Good day @CHooverShrimp You could try something like this: <!-- Reverts the data-overlayscrollbars-initialize styles when js is disabled --->
<noscript>
<style>
[data-overlayscrollbars-initialize] {
scrollbar-width: initial !important;
}
[data-overlayscrollbars-initialize]::-webkit-scrollbar,
[data-overlayscrollbars-initialize]::-webkit-scrollbar-corner {
appearance: initial !important;
display: initial !important;
width: initial !important;
height: initial !important;
}
</style>
</noscript> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
As far as I am aware, data-overlayscrollbars-initialize will hide your scrollbar even when javascript is disabled.
This is undesirable, as non-js user will now not have a scrollbar.
Is there a way to conditionally let them have the default scrollbar, without flickering?
Beta Was this translation helpful? Give feedback.
All reactions