-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Description
Description
In the List View, the focus style looks different between Post editor and Site editor. In the Site editor, it may be cut-off.
To my understanding there's two CSS issues:
1
Each row is made of two table cells <td>
elements. In the Site editor, the second cell may not have a dropdown menu toggle button and the cell is empty. Thw width of the cell needs to be 28 pixels even when it's empty.
2
Even after the width issue is fixed, the focus style of the templates (the one that uses the purple 'synced' color) looks different. The whole outline is larger. This is because the box-shadow
for template items is different and uses two box-shadowss, with some offset. Not sure why but I would say the shape of the box-shadow should be the same for all items.
In the image below I highlighted all the items in the list view with the focus style, to better illustrate:
- First screenshot: Post editor: everything looks as expected.
- Second screenshot: the outline is too wide and it's cut-off on the right.
- Third screenshot: after fixing the width, the outline of the templages is still too wide.
Step-by-step reproduction instructions
- Compare the list view in the post editor and site editor.
- Select the items in the list view so that they show the focus style outline (double click or navigate with keyboard).
- In the site editor, select also the template items.
- Observe the outline inconsistencies.
Screenshots, screen recording, code snippet
No response
Environment info
No response
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
Please confirm which theme type you used for testing.
- Block
- Classic
- Hybrid (e.g. classic with theme.json)
- Not sure