DataViews: Move Spinner and 'No results' at the top #67730
Labels
[Feature] DataViews
Work 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).
Needs Design Feedback
Needs general design feedback.
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Description
When the DataViews is fetching data to show, it shows a Spinner. When there are no results, it shows a 'No results' text.
Both are shown vertically centered, in the middle of the panel.
The results are, of course, shown at the top.
While displaying content in the middle of a (mostly) empty panel may look more 'elegant' and balanced at first, it's not ideal for accessibility:
I'm not sure whether there are specific design reasons to show this content in the middle of the panel other than aesthetic reasons. Anyways, I'd like to propose to move it at the top, immediately below the search and filter
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.
The text was updated successfully, but these errors were encountered: