-
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
Make 'Add' buttons consistent across data views, simplify labels #58198
Comments
You may not be aware that recently in core all the 'Add new' strings have been expanded to include the what they refer to. This has been done for accessibility reasons and to be consistent with Gutenberg. I'm not sure this should be changed. Please don't shorten to 'Add new'. |
@afercia couldn't we use aria labels like the action links in wp-admin tables? |
I'd really like to avoid using different logic in new interfaces from what we've decided to use in core. In core, we've agreed that these controls need to include context, so let's not just casually reverse that in a new interface. Regarding the row actions, those use aria-label only because of the amount of repetition and the possible length. There are several row actions, and each one needs that context included, and the post titles could be quite a bit longer than a single word. "Add New Template Part" is a nominal amount of text. In row actions, we'd potentially be looking at Screen reader users don't necessarily have to experience that entire text; spoken text can be interrupted, unlike visual text. So a screen reader navigating through these same links only needs to hear enough to verify that the context is what they expected it to be. So that quantity of text is less of an interference for screen reader users than it is for sighted users. |
At the least, now the the Patterns data view is stable, we should update the "Add new" UX there to match other data views. What do you think @oandregal @ntsekouras ? |
You mean a new |
I agree with @afercia on this #58198 (comment) UX wise, it's better to advance the value created within the button itself. |
I've updated the OP based on the discussion here to make the issue actionable. |
I think the first part of this issue should be a trac ticket as it means changing the "add_new_item" label for all the core post types and the post type registration is maintained on Core. |
Re-opening this to track the outstanding issue. |
+
in the sidebar. The+
button can be removed.The text was updated successfully, but these errors were encountered: