-
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
Visually hide 'Actions' column header #61710
Conversation
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. |
Size Change: -34 B (0%) Total Size: 1.75 MB
ℹ️ View Unchanged
|
Flaky tests detected in d131ab7. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/9110078789
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can wait to land this until it's been given a gut-check by others, but wfm.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this change should not cause any issues with accessibility.
One question, is <span className="dataviews-view-table-header">
still necessary? This class seems to add a small left padding, but the text is no longer visually present. If it is not needed, we may want to remove this span tag.
Good point, the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
Accessibility is not just about screen readers. This change goes in the opposite direction of some accessibility feedback previously reported on this old issue: #42505. A visible table header helps all users e.g. low vision users to draw their attention and identify the Actions column. The ellipsis button within the column is so thin that is hard to be seen for low vision users. A visible table header definitely helps. |
Co-authored-by: jameskoster <[email protected]> Co-authored-by: jasmussen <[email protected]> Co-authored-by: t-hamano <[email protected]>
What?
Visually hide the 'Actions' column header in data views table layout.
Why?
We can reduce some visual clutter in the top-right corner of the UI.
Unlike other column headers the 'Actions'
th
doesn't surface a menu on click, you can also argue that the items in this column are quite clearly actions, so the heading doesn't add a lot of value.The text is only hidden visually, so will still be announced by screen readers.