-
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
Standardize List View feature name to use title case capitalization. #61535
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: +70 B (0%) Total Size: 1.74 MB
ℹ️ View Unchanged
|
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.
@afercia Looks like some of these are still lowercase, see below...
@@ -416,13 +416,13 @@ export default function LatestPostsEdit( { attributes, setAttributes } ) { | |||
const layoutControls = [ | |||
{ | |||
icon: list, | |||
title: __( 'List view' ), | |||
title: _x( 'List view', 'Latest posts block display setting' ), |
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.
This should be uppercase?
@alexstine yes those are still lowercase because it's not about the 'List VIew', as in: the tool to show and navigate the block hierarchy. Instead, those are display options of some blocks. For example, in the Latest Posts block you will find in the block toolbar two buttons to set the layout of the latest posts to 'List view' or 'Grid view' (sic...). Samein the RSS block and in the Post Template block that is part of the Query Loop block. I'd agree usint the same name 'List view' for completely different features is less than ideal and potentially confusing for users. I will create a separate issue to propose to consider unambigous names. |
@afercia Looks like one order CSS was missed in this PR. The linting test is broken on trunk. |
Fixes #61531
What?
The 'List View' feature name uses inconsistent casing throughout the user interface.
Also, sometimes it is called 'block list view' and sometimes just 'list view'.
Why?
Conventionally, WordPress uses title case capitalization for feature names.
The name of a user-facing feature should be consistent.
How?
_x()
translation function.Testing Instructions
Open the block list view.
toOpen the List View.
.Testing Instructions for Keyboard
Screenshots or screencast