From dcd64554ebf37995d692633371c62d7903ce3d1d Mon Sep 17 00:00:00 2001 From: Adorian Doran Date: Wed, 26 Mar 2025 19:33:11 +0200 Subject: [PATCH] style(next): fix Firefox scrollbar styles overriding WebKit scrollbar styles --- src/public/stylesheets/theme-next/forms.css | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/public/stylesheets/theme-next/forms.css b/src/public/stylesheets/theme-next/forms.css index ecab8bdc1..16fec7c1e 100644 --- a/src/public/stylesheets/theme-next/forms.css +++ b/src/public/stylesheets/theme-next/forms.css @@ -730,4 +730,13 @@ input[type="range"] { :root { scrollbar-color: var(--scrollbar-thumb-color) transparent; scrollbar-width: var(--scrollbar-thickness); +} + +@supports selector(::-webkit-scrollbar) { + /* Prevent the scrollbar-color and scrollbar-width properties to override the custom styles + * defined using ::-webkit-scrollbar. */ + :root { + scrollbar-color: unset; + scrollbar-width: unset; + } } \ No newline at end of file