-
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
Post Comments block: Fix missing label in placeholder #40527
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
luisherranz
added
[Type] Bug
An existing feature does not function as intended
[a11y] Labelling
[Block] Comments (legacy)
The legacy mode of the Comments block (formerly known as Post Comments)
labels
Apr 21, 2022
Size Change: +27 B (0%) Total Size: 1.23 MB
ℹ️ View Unchanged
|
ryelle
reviewed
Apr 21, 2022
luisherranz
changed the title
Post Comments block
Post Comments block: Fix missing label in placeholder
Apr 22, 2022
DAreRodz
approved these changes
Apr 22, 2022
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 see everything is OK. Approved! ✅
13 tasks
ndiego
added
the
Backport to WP 6.7 Beta/RC
Pull request that needs to be backported to the WordPress major release that's currently in beta
label
Apr 25, 2022
gziolo
pushed a commit
that referenced
this pull request
Apr 25, 2022
Cherry-picked to the |
gziolo
removed
the
Backport to WP 6.7 Beta/RC
Pull request that needs to be backported to the WordPress major release that's currently in beta
label
Apr 25, 2022
priethor
added
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
and removed
[a11y] Labelling
labels
Jul 24, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
[Block] Comments (legacy)
The legacy mode of the Comments block (formerly known as Post Comments)
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
[Type] Bug
An existing feature does not function as intended
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What?
Fix missing label for textarea in Post Comments block placeholder.
Why?
@ryelle did an a11y review of the new placeholder and discovered that the label of the textarea is missing.
How?
The label tag is actually there, but I removed the textarea id because the linter was complaining.
I added it back along with an eslint exception.As per @ryelle suggestion (#40527 (comment)), I switched to using
useInstanceId
instead.Testing Instructions
inserter
property of the Post Commentsblock.json
totrue
so the block shows up in the inserter, or switch to the Code Editor and paste<!-- wp:post-comments /-->
.