-
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
Add heading to the block inserter tips (#22863) #22898
Conversation
@@ -92,6 +92,11 @@ function InserterMenu( { | |||
</div> | |||
{ showInserterHelpPanel && ( | |||
<div className="block-editor-inserter__tips"> | |||
<VisuallyHidden> | |||
<h2 className="block-editor-inserter__tips-title"> | |||
{ __( 'Tips for using the block editor:' ) } |
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.
Thanks for the PR 👍 I think we should probably remove the ":" and we may want to reword that a little bit. I'll add a "copy review" label.
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.
Thanks - should I wait for the copy review before updating the PR without the :
or should I change it right now?
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.
Yes, let's wait a bit and do a single update.
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.
Since only one tip is shown at a time, I think it should say "Tip for using the block editor".
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.
For the copy, can we just say "Block editor tip!"
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.
@michelleweber Remember, this is screen-reader-only text. I think adding an exclamation point might make the screen reader say it with a different inflection, which may not be desirable. (Then again, I've never used a screen reader, so I have no idea.)
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.
Ah, gotcha. In that case, I say stick with "A tip for using the block editor:"
(With whatever final punctuation makes the most sense for a screen reader.)
Thanks for the feedback. Just pushed a commit with a new message as suggested in the comments and rendering the visuallyhidden component as h2. |
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. Thanks for the work here.
Congratulations on your first merged pull request, @gaambo! We'd like to credit you for your contribution in the post announcing the next WordPress release, but we can't find a WordPress.org profile associated with your GitHub account. When you have a moment, visit the following URL and click "link your GitHub account" under "GitHub Username" to link your accounts: https://profiles.wordpress.org/me/profile/edit/ And if you don't have a WordPress.org account, you can create one on this page: https://login.wordpress.org/register Kudos! |
@ZebulanStanphill my mistake sorry :) |
closes
#22683#22863Description
Adds a heading for the tips in the block inserter as discussed in #22683
How has this been tested?
Screenshots
Types of changes
block-editor-inserter__tips-title
allthough no need for styling because it's wrapped in aVisuallyHidden
component.Tips for using the block editor:
which needs translationChecklist: