From 20ced5975d3c17f756d16bd1958c1c0c9f3ce989 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 29 Jan 2026 12:00:19 +0000 Subject: [PATCH] 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 --- src/index.css | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/index.css b/src/index.css index 47c64b4..0bbb5a2 100644 --- a/src/index.css +++ b/src/index.css @@ -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; } }