From 95e1b469eafa900e248e97e251a727a63815da86 Mon Sep 17 00:00:00 2001 From: Adam Wood <1017872+adamwoodnz@users.noreply.github.com> Date: Mon, 19 Feb 2024 14:42:14 +1300 Subject: [PATCH] Set overflow scroll behaviour to auto (#576) * Set breadcrumb overflow scroll behaviour to auto This stops the scrollbar always being shown when device preferences are set to show scrollbars * Set sidebar container overflow behaviour to auto * Set query filter overlay overflow behaviour to auto --- mu-plugins/blocks/query-filter/src/style.pcss | 2 +- mu-plugins/blocks/sidebar-container/postcss/style.pcss | 2 +- mu-plugins/blocks/site-breadcrumbs/postcss/style.pcss | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mu-plugins/blocks/query-filter/src/style.pcss b/mu-plugins/blocks/query-filter/src/style.pcss index 927b9f68b..6a67c52f2 100644 --- a/mu-plugins/blocks/query-filter/src/style.pcss +++ b/mu-plugins/blocks/query-filter/src/style.pcss @@ -121,7 +121,7 @@ margin: 0; padding: var(--wp--preset--spacing--10); max-height: 18rem; - overflow: scroll; + overflow-y: auto; border: none; } diff --git a/mu-plugins/blocks/sidebar-container/postcss/style.pcss b/mu-plugins/blocks/sidebar-container/postcss/style.pcss index 2224a05a5..311653fc0 100644 --- a/mu-plugins/blocks/sidebar-container/postcss/style.pcss +++ b/mu-plugins/blocks/sidebar-container/postcss/style.pcss @@ -30,7 +30,7 @@ width: var(--local--block-end-sidebar--width); padding-bottom: var(--local--padding); - overflow-y: scroll; + overflow-y: auto; overscroll-behavior: contain; scrollbar-color: var(--wp--preset--color--charcoal-5) transparent; diff --git a/mu-plugins/blocks/site-breadcrumbs/postcss/style.pcss b/mu-plugins/blocks/site-breadcrumbs/postcss/style.pcss index 8978fa392..7119324bd 100644 --- a/mu-plugins/blocks/site-breadcrumbs/postcss/style.pcss +++ b/mu-plugins/blocks/site-breadcrumbs/postcss/style.pcss @@ -11,7 +11,7 @@ } & .wporg-site-breadcrumbs__wrapper { - overflow: scroll; + overflow-x: auto; text-overflow: clip; white-space: nowrap;