-
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 covers the text when the block is aligned to the left/right/center #11382
Comments
Tested with WordPress 4.9.8 and Gutenberg 4.2.0 and confirmed and found that this problem happens even without changing the overlay color or opacity.
Result: when the cover block is aligned right, the text added appears at the top instead of centered vertically like it is in the editor and the text is behind the overlay which also looks different in the editor view. I expected the vertical alignment of the text and the overlay order to match. Seen at http://alittletestblog.com/wp-admin/post.php?post=15605&action=edit running and http://alittletestblog.com/2018/11/07/cover-block-alignment-test/ WordPress 4.9.8 and Gutenberg 4.2.0 and theme Twenty Seventeen 1.7 using Firefox 63.0.1 on macOS 10.13.6. |
This should be fixed in #11990 |
Describe the bug
When the Cover block is aligned to the left or to the right or to the center, the overlay covers the text and causes readability issues.
If the block does not have any alignment then it works fine. The text appears above the overlay.
Also, the content is not vertically aligned on the front end.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The text of the Cover block should appear above the overlay.
Screenshots
Dashboard:
Front end:
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: