style(next): fix Firefox scrollbar styles overriding WebKit scrollbar styles

This commit is contained in:
Adorian Doran 2025-03-26 19:33:11 +02:00
parent 40e990d39a
commit dcd64554eb

View File

@ -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;
}
}