-
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
Paragraph placeholder in InnerBlocks is set to opacity 0 #35928
Comments
That is an odd error; I am able to reproduce this on Gutenberg trunk last built on 2021-11-18; Investigating this more; the cause is this CSS in the paragraph bloc. @jasmussen - could you shed some light for this decision? |
Sure! It was added in #28275 to fix #13599. That is, if you create 10 empty paragraphs in a row, there's little value in seeing A very ugly hack we can't ship would be to do this:
Should we add an additional |
I just encountered this issue on a project I am working on. @jasmussen I like the idea of |
I've been pinged on the associated PR and discovered this issue. Learned something new as I was unaware of this behavior. I'm not sure the original change from #28275 / #13599 is a good choice in the first place. In my opinion, that introduced an accessibility and usability issue. The point is that the Editor is an editing interface. It should show what is editable. Instead, by hiding the default placeholder for the subsequent paragraph blocks, there's no visual indication of the editable fields. No border, no shape, no placeholder text, nothing. Seems to me that deliberately hiding the editable parts of an interface is less than ideal. Consider the screenshot below, where:
As a user, I can't really see where the editable paragraphs are, with the exception of the first ones. It's not even clear where I'm supposed to click to target the editable empty paragraphs. Hovering with the mouse doesn't help. Basically, the interface is lying to users because there's really no visual presentation of the editable parts. I'd like to stress that this is an editing context. While I understand the desire to make the editor a visual preview that is as close as possible to the front end, I'm not sure this is the right direction to take. Overall, I'd like to propose to reconsider the original change and just revert it. Minor, but interesting annoyance: when entering text or emptying the paragraphs, the placeholder visually 'moves' to the right / left and down / up. Basically, the placeholder appears and disappears based on the associated CSS rule that hides all subsequent placeholders (except the first one). The resulting visual effect is pretty confusing. I doubt users will actually understand why the placeholder appears and disappears. See animated GIF: |
Description
When generating an InnerBlock with a template in the editor, the placeholder of a paragraph that's immediately after another paragraph is set to opacity 0. Please see screenshot.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Environment info
WP version 5.8.1, using the stable Gutenberg version (not the plugin with experimental features)
Tested in multiple themes
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: