From 7c2c1a7d04620c98c1839e4bb396768bde513f2f Mon Sep 17 00:00:00 2001 From: Adam Wood <1017872+adamwoodnz@users.noreply.github.com> Date: Tue, 30 Jan 2024 11:22:15 +1300 Subject: [PATCH] Move skip link target styles to local nav bar --- mu-plugins/blocks/local-navigation-bar/postcss/style.pcss | 7 +++++++ mu-plugins/blocks/sidebar-container/postcss/style.pcss | 7 ------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/mu-plugins/blocks/local-navigation-bar/postcss/style.pcss b/mu-plugins/blocks/local-navigation-bar/postcss/style.pcss index 0a4b69567..cc94af9ad 100644 --- a/mu-plugins/blocks/local-navigation-bar/postcss/style.pcss +++ b/mu-plugins/blocks/local-navigation-bar/postcss/style.pcss @@ -123,6 +123,13 @@ } } +@media (min-width: 890px) { + /* stylelint-disable selector-id-pattern */ + #wp--skip-link--target { + scroll-margin-top: var(--wp--custom--local-navigation-bar--spacing--height, 0); + } +} + /* Set up the custom properties. These can be overridden by settings in theme.json. */ :where(body) { --wp--custom--local-navigation-bar--spacing--height: 60px; diff --git a/mu-plugins/blocks/sidebar-container/postcss/style.pcss b/mu-plugins/blocks/sidebar-container/postcss/style.pcss index ba5353fa2..fe8bcdd4e 100644 --- a/mu-plugins/blocks/sidebar-container/postcss/style.pcss +++ b/mu-plugins/blocks/sidebar-container/postcss/style.pcss @@ -71,13 +71,6 @@ } } -@media (min-width: 890px) { - /* stylelint-disable selector-id-pattern */ - #wp--skip-link--target { - scroll-margin-top: var(--wp--custom--local-navigation-bar--spacing--height, 0); - } -} - /* Set up the custom properties. These can be overridden by settings in theme.json. */ :where(body) { --wp--custom--wporg-sidebar-container--spacing--margin--top: var(--wp--preset--spacing--edge-space);