Skip to content

Dataviews: In the grid layout, hiding the media also removes the checkboxes on items and makes them unselectable #71219

@talldan

Description

@talldan

Description

In grid mode for dataviews users can hide the media thumbail (in the screenshot 'Hide Image') by toggling from the 'View options' menu:
Image

When doing this, the checkboxes for items are hidden (they're rendered as part of the media), and it makes items unselectable, and also makes it impossible to see which items are selected (the selection state is still retained).

Step-by-step reproduction instructions

  1. Open the storybook story
  2. Switch to grid layout
  3. Select a couple of random items using the checkbox
  4. From the View Options menu, hide the Image

Actual: Note that you can no longer see selected items, nor can you (de)select more
Expected: The checkbox is still displayed after hiding the image, perhaps next to the title.

Screenshots, screen recording, code snippet

Image

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

No one assigned

    Labels

    [Feature] DataViewsWork surrounding upgrading and evolving views in the site editor and beyond[Focus] Accessibility (a11y)Changes that impact accessibility and need corresponding review (e.g. markup changes).[Package] DataViews/packages/dataviews[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