-
Notifications
You must be signed in to change notification settings - Fork 218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update logo nav component in header #2136
Conversation
Size Change: +3.53 kB (0%) Total Size: 850 kB
ℹ️ View Unchanged
|
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.
The logo in frontend/test/playwright/visual-regression/components/filters.spec.ts-snapshots/filters-modal-filters-selected-ltr-png-xs-linux.png
seems to be animating. Can we pause the animation for VRT, I suspect it will cause flakiness otherwise?
5c966c1
to
a7982c5
Compare
That was a locally-generated snapshot that I've updated later. I think we don't need to pause animation, but if the tests do fail again, I'll investigate if we need to adjust the wait. I've replaced the snapshot with a correct one. |
e87d12f
to
ca6191e
Compare
5c774f5
to
5a0ec34
Compare
This looks excellent. Before approving I do want to clarify one thing with @fcoveram when he can look at it: There's historically been, including in this PR, a small size and placement difference between the logo on the homepage and the logo on the site content pages. I attempted to make a video overlaying the two to show the issue: https://share.cleanshot.com/TSbFf3kz is this discrepancy present in Figma? Does it matter to fix this? |
5a0ec34
to
375c672
Compare
Based on the high urgency of this PR, the following reviewers are being gently reminded to review this PR: @fcoveram Excluding weekend1 days, this PR was ready for review 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.
Thanks for the great testing instructions, I was able to confirm each of the cases when running locally!
As in the example shared, it's not present in Figma. If you go to the Logo nav component in the Design Library, you will see the following ![]() Row 1 (size: small) is the logo for the content header in small breakpoints when it's part of the search bar. Row 2 (size: medium) is for the content header in bigger breakpoints. And Row 3 (size: large) is for the internal header in all breakpoints. Row 2 and 3 share the same size for the symbol, but the latter adds the word "openverse" and has a 16px padding on left and right sides. ![]() So going back to your questions from the video:
|
375c672
to
d91df61
Compare
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.
It looks perfect ✨ 🚀
Since this PR addresses changes in Header internal, the component specs described here can be tackled in a different PR.
84bae3f
to
214ab38
Compare
ae94e43
to
b02047b
Compare
Fixes
Related to #476 by @fcoveram
Description
This PR updates the
VHomeLink
component and theVLogoButton
component to match the Figma mockups. It cleans up the components from unused props and adds the Storybook stories.This PR is necessary for replacing the svg dependencies in #2135, which, in turn, is required for Nuxt 3 migration. This is the reason for "high" priority label.
Because this PR changes the spacing of the header logo, there are a lot of snapshot changes.
Testing Instructions
Check the home links in the internal header (the one with the page links, as on the homepage, content pages such as "about" page and the single result pages). The logo should be 18px high, as in the mockups, and the link itself should be 48px high. On hover on white pages, the background becomes yellow. When focused, it should have a pink focus ring.
A special case is a pages modal on mobile width screen. You can open it if you open the site on a narrow screen and click on the "hamburger" menu button. The modal background is black, so the logo becomes white. The focus ring is yellow instead of pink.
Checklist
Update index.md
).main
) or a parent feature branch.Developer Certificate of Origin
Developer Certificate of Origin