Reader: Fix search header styles on scroll#101890
Conversation
Jetpack Cloud live (direct link)
Automattic for Agencies live (direct link)
|
|
This PR does not affect the size of JS and CSS bundles shipped to the user's browser. Generated by performance advisor bot at iscalypsofastyet.com. |
| <NavigationHeader | ||
| title={ translate( 'Search' ) } | ||
| subtitle={ translate( 'Search for specific topics, authors, or blogs.' ) } | ||
| /> |
There was a problem hiding this comment.
On scroll we are not keeping navigation header sticky on top so moving this out to keep it consistent with other pages.
| @import "@wordpress/base-styles/variables"; | ||
|
|
||
| // .has-header-section only applies for logged out views | ||
| .layout.has-header-section.is-section-reader .search-stream__fixed-area .navigation-header h1 { |
There was a problem hiding this comment.
No change in styles. Just refactor the code to keep all logged out styles at one place.
| padding-top: 0; | ||
| margin-top: 0; | ||
| .search__input-fade::before { | ||
| border-radius: 4px; |
| width: calc(100% - 96px); | ||
| } | ||
| } | ||
| padding: 24px 0 0; |
There was a problem hiding this comment.
Adding padding on top of the fixed area so that we have proper spacing on scroll.
| } | ||
| } | ||
|
|
||
| // For reader/search |
There was a problem hiding this comment.
- Added these styles here to keep all navigation-header styles at one place.
- Removing bottom margin as now we are giving spacing to search fixed area.
|
This PR modifies the release build for the following Calypso Apps: For info about this notification, see here: PCYsg-OT6-p2
To test WordPress.com changes, run |
artemiomorales
left a comment
There was a problem hiding this comment.
Looks good to me!

Related to #100357
Proposed Changes
Why are these changes being made?
While working on #100357 I noticed some broken styling on search header and decided to fix it.
Testing Instructions
Pre-merge Checklist