-
Notifications
You must be signed in to change notification settings - Fork 214
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 appearance of sensitive image thumbnails #4831
Conversation
Full-stack documentation: https://docs.openverse.org/_preview/4831 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. |
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 don't think we can nest
<div>
in an<a>
, so perhaps it would be better to wrap the icons and label in<span>
s - The text on hover is inheriting an underline from the parent
<a>
tag - The icon is the wrong color in dark mode (looks like there is a fill hardcoded on the svg path)
The updated blurs look gorgeous!
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.
3f0d55a
to
36cb204
Compare
@zackkrida, I thought so too, but I just learned that in HTML5
@obulat I tried both Firefox and Chrome but I am not able to reproduce the 1px line at the bottom, can you share your browser info? |
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.
Just two more small pieces of feedback, one we likely have to ask @fcoveram about.
-
I think we should remove the
title
attribute from the anchor tag, as the tooltip feels redundant:
-
The light mode overlay color is very overpowering, and removes much of the blurred quality and the underlying image:
To the point that it almost looks like a plain grey background. I wonder if it's possible to adjust that?
To your points:
How does that sound? |
This must have something to do with the size calculations in the image grid. It only happens on the image grid where the sizes are variable. I could reproduce it in Chrome and Safari. Here's a Safari screenshot. Lines at the bottom are not so common, but the corners often have a different-color dot. I don't want to block on this because I think it won't be that noticeable. Safari screenshot, see the first image in the row: Chrome screenshot, look at the bottom row: |
4d4c81e
to
92031f9
Compare
@fcoveram these are 88% (current), 80%, 72%, 64% and no overlay respectively. As @zackkrida mentioned the current version shows almost no features of the underlying image, which only start to appear at much lower opacity (even 64% might be too much). |
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 icon color was fixed, and the lines appear very rarely, and can be fixed when we find the reason for them. Nice improvement ✨
I will merge this PR once @fcoveram's preferred opacity level is implemented. |
@dhruvkb I think 72% might be the best option, while we await Francisco's opinion 😆 Thank you for showing the different options. |
Fixes
Fixes #4777 by @fcoveram
Description
This PR
bg-blur
Testing Instructions
/preferences
and check the "fake_sensitive" preference.Checklist
Update index.md
).main
) or a parent feature branch.ov just catalog/generate-docs
for catalogPRs) or the media properties generator (
ov just catalog/generate-docs media-props
for the catalog or
ov just api/generate-docs
for the API) where applicable.Developer Certificate of Origin
Developer Certificate of Origin