-
Notifications
You must be signed in to change notification settings - Fork 202
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 banner to match new designs and add analytics notification #2132
Conversation
… into banner-style-refresh
Size Change: +1.59 kB (0%) Total Size: 846 kB
ℹ️ View Unchanged
|
Full-stack documentation: https://docs.openverse.org/_preview/2132 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. |
66351b4
to
5db7990
Compare
Drafted and blocked awaiting the right icons and exact colors. |
…w_banner_designs
@sarayourfriend requesting your review here as I don't think @fcoveram has the capacity to look at this PR this week. |
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.
I'll review this today or tomorrow. |
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, works and looks great locally and on my relatively low-spec Android phone.
We should keep in mind the banner stacking and probably consider avoiding adding any more... Even two feels like a lot and will now be a common occurrence for folks visiting certain translations. At least the case with three is impossible to reach organically, right? CC search doesn't redirect any of our language prefixes as far as I can tell in my brief testing.
@sarayourfriend you're right, while 3 is the theoretical maximum, 2 is the most that will occur in practice. CC Search does not redirect to our localised pages. Even then, we need to be conscious about adding any more banners in the future, or finding an alternative UI to display notifications (other than banners) if there is a need to add any new ones. |
Thanks for the work @dhruvkb, and @sarayourfriend and @zackkrida for reviewing it.
+100. To this point, the best approach is to include notifications and any other similar feedback during the search experience or in context, like in the playing audio message when focusing on the component. We should avoid thinking of "adding a banner" as a first solution each time we need to convey information. That degrades UX and product quality. |
Fixes
Fixes #823 by @dhruvkb
Description
This PR
VNotificationBanner
component to supportTesting Instructions
You can directly refer to updated snapshots in the "Files changed" tab. Or you can do the following:
http://localhost:8443/hi/?referrer=creativecommons.org
http://localhost:8443/hi/about/?referrer=creativecommons.org
Checklist
Update index.md
).main
) or a parent feature branch.Developer Certificate of Origin
Developer Certificate of Origin