-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Give editable fields in blocks better aria-labels. #26582
Conversation
Size Change: +224 B (0%) Total Size: 1.19 MB
ℹ️ View Unchanged
|
It looks like this PR needs testing and should be good to go. |
4ece1df
to
f1f471d
Compare
f1f471d
to
8e76797
Compare
@@ -23,6 +23,7 @@ export default function ShortcodeEdit( { attributes, setAttributes } ) { | |||
className="blocks-shortcode__textarea" | |||
id={ inputId } | |||
value={ attributes.text } | |||
aria-label={ __( 'Shortcode text' ) } |
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.
"text" might be not the best fit for shortcodes. How about 'Shortcode content'?
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.
"Content" sounds like it might refer to stuff between shortcode tags, but not including them, so I'm not sure if it's the right term. What do you think, @afercia?
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.
Proposed changes look good 👍
Ideally, it should be tested by someone using assistive technologies before merging.
I also included some suggestions for placeholder
props to align with the most popular usage. Totally optional, I leave it up to you to decide whether they make sense to apply 😄
Co-authored-by: Greg Ziółkowski <[email protected]>
b9650e1
to
fc7545b
Compare
Thank you @ZebulanStanphill for addressing my feedback, feel free to merge based on my review if there is no more feedback added 😄 |
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 👍
Description
Fixes #1659.
Checklist: