Cover block overlay with detected color does not work once saved #64702
Labels
[Block] Cover
Affects the Cover Block - used to display content laid over a background image
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
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: