Skip to content
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

Add overlay color support #5

Open
gaambo opened this issue Oct 30, 2024 · 0 comments
Open

Add overlay color support #5

gaambo opened this issue Oct 30, 2024 · 0 comments

Comments

@gaambo
Copy link
Contributor

gaambo commented Oct 30, 2024

Originally reported here: https://wordpress.org/support/topic/cover-block-width-not-working-properly/#post-18102828

For parity with the cover block, allow setting a overlay color when a background image is set would be great. At the moment the slide block supports setting a background color and background image (+position & size) thanks to the background block support.
The overlay color and opacity is a custom implementation in the cover block (see here). The basic implementation would probably not be too complex. There are components like ColorGradientSettingsDropdown to use for selecting a color or gradient.

But the cover block also does some guessing of a good color based on the background image etc - that would have to be replicated/copied over and I don't really like the idea of that.

So maybe implement that in steps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant