-
Notifications
You must be signed in to change notification settings - Fork 64
Use correct color for different routes in the default layout #2108
Conversation
Storybook and Tailwind configuration previews: Ready Storybook: https://wordpress.github.io/openverse-frontend/_preview/2108 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: -2.25 kB (0%) Total Size: 892 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.
This is really good. I have some non-blocking suggestions and a note about a comment that might be out-of-sync with the code.
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.
LGTM with @dhruvkb's suggestion about the cookie type. Great approach of checking for a nuxt error in the (now named correctly) default layout.
Playwright Failure Test Results It looks like some of the Playwright tests failed. You can download the Playwright trace https://github.com/WordPress/openverse-frontend/actions/runs/4054156965 Read more about how to use this artifact here: https://github.com/WordPress/openverse-frontend/blob/main/test/playwright/README.md#debugging |
Fixes
Fixes #2107 by @obulat
Description
This PR fixes
useMatchRoute
to not depend on the locale code. With these changes, the locale changes do not revert the layout color to yellow on the search page. Also, the default layout sets the background to yellow if there is aapp.nuxt.err
to make sure that the Error page stays yellow even after changing the locale, and the path starts with /image/ :)Testing Instructions
Compare this branch with https://staging.openverse.org (both with with the new_header):
Checklist
Update index.md
).main
) ora parent feature branch.
errors.
Developer Certificate of Origin
Developer Certificate of Origin