From 5224387c5a807ec5bad66106db69375ee93a5e6e Mon Sep 17 00:00:00 2001 From: Jake Howell Date: Tue, 10 Feb 2026 12:16:44 +1100 Subject: [PATCH] fix: apply `overflow-y: scroll` to `` (#21988) --- site/src/index.css | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/site/src/index.css b/site/src/index.css index 82af501cbd..f8871a91d6 100644 --- a/site/src/index.css +++ b/site/src/index.css @@ -100,6 +100,10 @@ @apply border-border; } + html { + overflow-y: scroll; + } + /* By default, Radix adds a margin to the `body` element when a dropdown is displayed, causing some shifting when the dropdown has a full-width size, as is the case with the mobile menu. @@ -110,12 +114,7 @@ */ html body[data-scroll-locked] { --removed-body-scroll-bar-size: 0; - margin-right: 0; - } - - /* Prevent layout shift when modals open by maintaining scrollbar width */ - html { - scrollbar-gutter: stable; + margin-right: 0 !important; } /*