Skip to content

Commit

Permalink
Global Header: Bring back custom property for header offset
Browse files Browse the repository at this point in the history
This value is used elsewhere in the Local Navigation Bar CSS, and in the parent theme. Removing it causes alignment issues when the value is undefined.

Follow-up to #665
Fixes #672
  • Loading branch information
ryelle committed Nov 25, 2024
1 parent 82ed784 commit b90ab63
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mu-plugins/blocks/global-header-footer/postcss/_common.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
html {
--wp--custom--alignment--scroll-bar-width: 8px;

/* Offset from the top of the page. */
--wp-global-header-offset: calc(var(--wp-global-header-height, 0px) + var(--wp-admin--admin-bar--height, 0px));
height: unset; /* Let height use default browser height. */
}

Expand Down

0 comments on commit b90ab63

Please sign in to comment.