-
Notifications
You must be signed in to change notification settings - Fork 64
Fix filters spacing with a new header #1938
Conversation
the top and bottom margins should be 32px
Storybook and Tailwind configuration previews: Ready Storybook: https://wordpress.github.io/openverse-frontend/_preview/1938 Please note that GitHub pages takes a little time to deploy newly pushed code, if the links above don't work or you see old versions, wait 5 minutes and try again. You can check the GitHub pages deployment action list to see the current status of the deployments. |
Size Change: -6.11 kB (-1%) Total Size: 810 kB
ℹ️ View Unchanged
|
Based on the high urgency of this PR, the following reviewers are being gently reminded to review this PR: @zackkrida Excluding weekend1 days, this PR was updated 2 day(s) ago. PRs labelled with high urgency are expected to be reviewed within 2 weekday(s)2. @obulat, if this PR is not ready for a review, please draft it to prevent reviewers from getting further unnecessary pings. Footnotes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rewrite after checking the right branch: Looks good!
Can we add/update visual regression tests for the sidebar?
I got an email notification with the video, then checked out the branch to check how that could have happened, and then realized that the single result is not supposed to have a filters sidebar :) Thank you for reminding me about the tests, @krysal! I've added the snapshots of the sidebars. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent, thanks!
Fixes
Related to #1581 by @panchovm
Description
This PR is a companion to #1931. It adds the correct padding values for the filters sidebar on
new_header
layouts. It fixes the lack of padding on the desktop screens:Also, the unnecessary padding and margins are removed. To make sure that 'Clear filters' button doesn't affect the layout when it is shown or hidden, the button uses
absolute
positioning.Testing Instructions
Go to https://localhost:8443/preferences and make sure the New header flag is checked. Go to a search page and open the filters sidebar. It should have correct padding, and the layout should not change when 'Clear filters' button appears/disappears.
Checklist
Update index.md
).main
) or a parent feature branch.Developer Certificate of Origin
Developer Certificate of Origin