Currently I am dipping my toes into frontend development using Vue.JS and Vuetify. One of my objectives was to hide the scrollbar (even though I know I can't completely delete it). I found a code snippet that should achieve this goal, which is included in the index.html file used as a template for vue-cli to compile the website:
<style>
html::-webkit-scrollbar { display: none; }
html { -ms-overflow-style: none; }
</style>
This solution works perfectly on Chrome and MS Edge, but unfortunately it doesn't have any effect on browsers like Safari and Firefox. Even when inspecting the page through Developer tools, it seems like the code is being completely ignored. Interestingly, when I include the same code in each App.vue file (since I'm working on a Multi Page Project), it actually works. Why does it work in one scenario but not the other? And is there a workaround for this issue?
Best regards