-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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: allow the overlay color and height default values to be changed by theme.json #27809
Comments
With background color, do you mean the overlay? |
I'm talking about the background color of the block that is seen when we reduce the opacity of the image overlay, yes. (This value should be able to be defined by default from the theme.json file:
|
@nosolosw curious what you think about allowing a |
Slighlty related: |
I would love a feature like this. Here is my suggestion on how it should be setup in the theme.json file:
|
For some reason, all my overlay colors went from the default Black to nothing. This changed all my image blocks I already had on my page and now the image over text which i use the color white, you can't read the parts that the image background is white. How can we set the default Color to stay black? I don't want to have to edit every block one by one. This was changed somehow automatically. Help Please. |
With the release of WP 6.5 and the cover block now automatically choosing a color for the overlay, this enhancement would be greatly appreciated. I develop a block theme for an organization where we need to meet certain branding and accessibility requirements. As it stands, the automatic color overlay that's chosen does not always choose a color for the overlay that contrasts well with the text on top. I would much rather go back to defaulting to black. Being able to control that default with theme.json makes sense. |
The theme should be able to define the background color by default from the theme.json file. This is needed specifically when the background of the cover block is an image (and therefore the user can change its opacity revealing said background color). Right now the editor is defaulting to black and can only be overridden by the theme's css
I don't see the Cover block on this table on the docs: https://github.com/WordPress/gutenberg/blob/master/docs/designers-developers/developers/themes/theme-json.md#color-properties
EDIT:
I'm also adding the height of the cover block to this issue for the same reasons. If the end-user can change the values of the height and overlay colors for the cover block, I don't see why we can't have the theme.json be able to set the default values for them too.
The text was updated successfully, but these errors were encountered: