Skip to content

List View: focus style is cut off in the Site Editor #69189

@afercia

Description

@afercia

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.

Image

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

Metadata

Metadata

Assignees

Labels

[Feature] List ViewMenu item in the top toolbar to select blocks from a list of links.[Package] Block editor/packages/block-editor[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions