fix: use !important to override global scrollbar styles

The global * selector's scrollbar-width: thin was overriding the
no-scrollbar utility due to CSS cascade order. Adding !important
ensures the utility always wins.

https://claude.ai/code/session_018RiPf74GNf2oWcoYNRoZyx
This commit is contained in:
Claude
2026-01-29 12:00:19 +00:00
parent a1300fff20
commit 20ced5975d

View File

@@ -303,24 +303,24 @@
========================================================================== */
@utility no-scrollbar {
-ms-overflow-style: none;
scrollbar-width: none;
-ms-overflow-style: none !important;
scrollbar-width: none !important;
&::-webkit-scrollbar {
display: none;
width: 0;
height: 0;
display: none !important;
width: 0 !important;
height: 0 !important;
}
}
@utility hide-scrollbar {
-ms-overflow-style: none;
scrollbar-width: none;
-ms-overflow-style: none !important;
scrollbar-width: none !important;
&::-webkit-scrollbar {
display: none;
width: 0;
height: 0;
display: none !important;
width: 0 !important;
height: 0 !important;
}
}