Skip to content

Commit

Permalink
Fix incorrectly positioned sticky header on search page
Browse files Browse the repository at this point in the history
Use local nav bar instead of custom styled group

Fixes #373
  • Loading branch information
adamwoodnz committed Dec 19, 2023
1 parent 8498dae commit 59082d0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions source/wp-content/themes/wporg-main-2022/patterns/search.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
*/

?>
<!-- wp:group {"align":"full","style":{"elements":{"link":{"color":{"text":"var:preset|color|white"}}},"spacing":{"padding":{"top":"16px","right":"var:preset|spacing|60","bottom":"0","left":"var:preset|spacing|60"}}},"backgroundColor":"blueberry-1","textColor":"white","className":"is-style-brush-stroke is-sticky","layout":{"type":"constrained"}} -->
<div class="wp-block-group alignfull is-style-brush-stroke is-sticky has-white-color has-blueberry-1-background-color has-text-color has-background has-link-color" style="padding-top:16px;padding-right:var(--wp--preset--spacing--60);padding-bottom:0;padding-left:var(--wp--preset--spacing--60)"><!-- wp:group {"align":"full","layout":{"type":"flex","flexWrap":"wrap","justifyContent":"space-between"}} -->
<div class="wp-block-group alignfull"><!-- wp:paragraph {"style":{"typography":{"fontStyle":"normal","fontWeight":"700"}},"fontSize":"small"} -->
<p class="has-small-font-size" style="font-style:normal;font-weight:700"><?php _e( 'Search', 'wporg' ); ?></p>
<!-- /wp:paragraph --></div>
<!-- /wp:group --></div>
<!-- /wp:group -->
<!-- wp:wporg/local-navigation-bar {"className":"is-style-brush-stroke","style":{"position":{"type":"sticky"}},"fontSize":"small"} -->
<!-- wp:paragraph {"style":{"typography":{"fontStyle":"normal"}},"fontSize":"small"} -->
<p class="has-small-font-size" style="font-style:normal"><?php _e( 'Search', 'wporg' ); ?></p>
<!-- /wp:paragraph -->
<!-- /wp:wporg/local-navigation-bar -->

<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"var:preset|spacing|50"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group alignfull" style="padding-top:var(--wp--preset--spacing--50)"><!-- wp:wporg/google-search-embed {"align":"wide"} /--></div>
<div class="wp-block-group alignfull" style="padding-top:var(--wp--preset--spacing--50)">
<!-- wp:wporg/google-search-embed {"align":"wide"} /-->
</div>
<!-- /wp:group -->

<!-- wp:spacer {"height":"40px"} -->
Expand Down

0 comments on commit 59082d0

Please sign in to comment.