-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DataViews: Move Spinner and No results text at the top. #67731
base: trunk
Are you sure you want to change the base?
Conversation
Size Change: -7 B (0%) Total Size: 1.84 MB
ℹ️ View Unchanged
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
78e4c6c
to
dc23356
Compare
Flaky tests detected in dc23356. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/12273604610
|
@WordPress/gutenberg-design I'd appreciate a review, when you have a chance. |
I'd agree, I think there may simply be a dialectical disagreement on what proximity in the UI means. In both of these cases, these are finite panels that do not endlessly scroll off into infinity. They are centered in each of those panels, and are thus in proximity of those panels. |
Actually no, it's not about language semantics. I'd appreciate design feedback to take into consideration the devices and tools users actually use. Users who use screen magnification at very high zoom levels will struggle to understand there is some important information way far from the controls in use. Please refer to https://core.trac.wordpress.org/ticket/40822 to get more familiar with the underlying problem. This is an accessibility issue, not a visual balancing issue. Thanks. |
To better illustrate, I took the time to videorecord what the user experience looks like when using a magnification tool at a high zoom level. I'd expect contributors to this project to be familiar with all the technologies and devices WordPress aims to support to be as accessible as possible. Magnification tools are one of them. Contributors that use macOS can try the Zoom tool that is built in the operating system. It can be enabled from the system preferences and provides keyboard shortcuts to toggle on/off, increase and decrease the zoom level. When using these tools, users see only a portion of the screen. When important information is shown unnecessarily far from the current zoomed-in screen portion, that information may be completely lost. The argument that vertically centering is more 'balanced' is only for aesthetic reasons and doesn't take into account the functional issue any UI must address when it comes to the concept of proximity. I'd encourage contributors to actually try a magnification tool to better understand the issue this PR aims to solve. On macOS, such a tool is there, a few clicks right away from you. Please consider that in the videorecording below I'm using a moderate zoom level. I've seen users actually use an even higher zoom level, which makes the actual visible part of the UI even smaller. proximity.at.high.zoom.level.mp4 |
FWIW, there are designs and a discussion about an improved empty state in DataViews in #61442. |
Adding one more consideration: there are places in the editor where such informational messages are displayed at the top of the panel. For example in the Inserter > Blocks / Patterns / Media, the 'no results' message is at the top. As such, the vertically centered alignment appears to be a design inconsistency, besides being not accessible. Screenshot: @WordPress/gutenberg-core I'd appreciate a review, when you have a chance. Edit: |
dc23356
to
1196287
Compare
Fixes #67730
What?
Moves the dataviews Spinner and 'No results' text at the top of the list panel.
Why?
Important information should be shown in proximity with the UI it relates to.
Low vision users, screen magnifier users, may entirely miss light shapes or small text shown in the middle of a big white space.
How?
Removes the flex-grow propertuy that was responsible to make this content vertically centered.
Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast