-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Blocks display inconsistently depending whether they've been selected or not #18841
Comments
Hmm, I think the little 'Classic Block' banner is displayed when the block is empty, that's because the classic block has no placeholder, but it does potentially seem to be a bug that sometimes this doesn't display when the block is empty. As to the other points, there doesn't seem to be the same inconsistency in the latest version of the block editor. I'll leave this issue open as the problem identified with the Classic Block could be improved. |
Hi @maddisondesigns, Thank you for submitting this issue. I've linked a PR. Can you test it if you have time? @mrleblanc101 @talldan - If you also have the time. Thanks guys! |
We at WordPress.com recently had an additional report of this inconsistency |
This is not something I can reproduce anymore. |
@youknowriad The reason you can't reproduce it any more is because you removed all the outlines from every single block. So not only does it stop this issue from happening, but it's made the whole editing experience just generally worse. You now have no idea where one block ends and another starts, and you can't tell whether a block is enclosed within one or more other blocks. On top of that, it's now virtually impossible to simply click on the exact block that you want, particularly when there's multiple blocks inside each other. I should be able to look at a page, and without clicking on anything, see exactly what blocks that page consists of, but I can't. |
I hope you understand that nested blocks is a mandatory feature and yeah it's very hard to get the balance right without creating differences between frontend and backend. That's the reason the "list view" exists. If you have better ideas on how to solve this please do open issues and suggest solutions. There are already issues that discuss bring more outlines to the UI like this one #25133 but feel free to open new issues if needed. Thanks. |
@youknowriad Of course nested blocks are mandatory! You can't even do something as simple as a two column layout without nested blocks. |
Describe the bug
When you open a page to edit it, and hover over each block, nothing changes. The blocks aren't highlighted in any way and there's no indication that each bit of content is a separate block. The only thing you see as you scroll up and down the page is the occasional Block Inserter icon appear as your cursor hovers near the top of a block.
If you then click on a block to select it, and then simply click out of the block to deselect it, the blocks start behaving differently. After doing this, each time you hover over an individual block, it's 'highlighted' with a light-grey left-hand border and a small breadcrumb tag in the upper-left corner of the block.
Why do blocks behave differently depending on whether I've clicked on one or not? They shouldn't. As soon as I open the page, they should highlight as soon as I hover over them.
Vid: https://share.getcloudapp.com/Koue04yR
On top of this, the Classic Block is treated even differently. When you first open the page, the Classic Block has a light-grey header across the top that says "Classic". When you click on the Block, the toolbars appear as expected, but when you click out of the block to deselect it, this header disappears and never shows again.
Also, when you hover your cursor over the Classic Block, it doesn't show the small breadcrumb tag in the upper-left corner of the block, like all the other blocks.
The Classic Block when first opening the page
The Classic Block after you've selected and deselected the block
To reproduce
Steps to reproduce the behavior:
Expected behavior
Blocks should behave consistently. They shouldn't behave differently based on whether I've clicked on one or not.
The Classic Block should behave exactly like every other block.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: