Skip to content

DataViews Grid layout: Improve support for hidden titles #71078

@andrewserong

Description

@andrewserong

What problem does this address?

In the Grid layout of DataViews if you set showTitle to false and don't have any fields visible, there's a whitespace displayed beneath each item in the grid, that only serves to contain the actions dropdown. How might we also hide this, so that the Grid view could be a simple grid of items with a balanced gap between each item in the grid?

Here is a screenshot of how it looks if you hide all fields and set showTitle to false:

Image

What is your proposed solution?

What if we:

  • Allow the title field to be hidden, so that if it's set not to show, users can still set it to be revealed again
  • When the title / all fields are hidden, ensure that there's still an aria-label or other approach used so that the title is accessible even if not visually displayed
  • Move or hide the actions dropdown. I.e. could it be displayed on hover like we do for the checkbox for multi-selection?

Metadata

Metadata

Assignees

Labels

Needs Design FeedbackNeeds general design feedback.[Feature] DataViewsWork surrounding upgrading and evolving views in the site editor and beyond[Status] In ProgressTracking issues with work in progress[Type] EnhancementA suggestion for improvement.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions