-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Cover block overlay with detected color does not work once saved #64702
Comments
Interesting bug! I'm not sure of a solution yet, but while testing this out, I found that if I comment out this line from the last deprecation for the block, then replacing the image after reloading the post works again to update the cover overlay color:
This points to that deprecation's |
Just assigning this one to myself since I've started looking into it, but anyone else is welcome to look, too, of course! 🙂 |
@andrewserong, the new deprecation seems to be broken. See #64480 (comment). |
I have a tentative fix open over in #65077 that's proposing removing the deprecation. Very happy for feedback on it, either way! |
The current functionality for detecting dominant color and applying it to the cover block's overlay is nice, but it's limited—making it feel inconsistent.
The cover block has the
isUserOverlayColor
attribute, which when set totrue
does not detect color and apply a newcustomOverlayColor
.I propose that this value should only be
true
if the user actually picked a different color than what was detected and applied.If I never changed the previously generated overlay color value, and I replaced the image, I'd expect the block to detect and apply the new image's dominant color to the overlay again. This works today — but again, only if I don't save the post. Once it's saved,
isUserOverlayColor
is no longerfalse
and you're stuck with the previously saved overlay color unless you manually change it.Related #54054.
Visual
CleanShot.2024-08-21.at.20.55.50.mp4
The text was updated successfully, but these errors were encountered: