-
Notifications
You must be signed in to change notification settings - Fork 63
Conversation
Storybook and Tailwind configuration previews: Ready Storybook: https://wordpress.github.io/openverse-frontend/_preview/1961 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.16 kB (0%) Total Size: 821 kB
ℹ️ View Unchanged
|
f0e23b7
to
ca4c5e3
Compare
ca4c5e3
to
288a8e8
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.
The separation looks good. I have some tiny non-blocking comments.
@@ -82,3 +85,8 @@ export default defineComponent({ | |||
}, | |||
}) | |||
</script> |
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.
Please add a blank line. Maybe we should add a lint rule that ensures this.
/* Removes a tiny gap between the button and the input borders */ | ||
border-inline-start: 0; |
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.
Seeing as border-inline-*
is being used in many places, would making a Tailwind utility for this be cleaner? Looks like that can remove entire <style>
blocks in some files.
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.
Everything is working as expected. Nice work.
Fixes
Fixes #1947 by @obulat
Description
There are two components for the Search button: old and new. Currently,
VSearchButton
is used only on the search page with thenew_header
. TheVSearchButtonOld
is used everywhere else (in the search pages with theold_header
and the standalone search bar on the 404 and home pages)This means that we cannot simply remove the component when we switch to the
new_header
as the standalone search bar would be using it.To solve it, this PR refactors the components. Now, the
VSearchButtonOld
is only used on the search pages withold_header
layout, and can be safely deleted when we switch on thenew_header
flag in production.There are no additional tests, but there are VR tests for the search button on all pages that still pass in this PR, so it means there are no visual regressions.
Testing Instructions
There are many VR tests that test the Search button: on the homepage, on the search page (in the header component tests, hovered/active), and on the 404 page. They did not have to be updated.
Checklist
Update index.md
).main
) or a parent feature branch.Developer Certificate of Origin
Developer Certificate of Origin