-
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
Inline Commenting: Show the reply field when a thread is focussed #66417
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: -7 B (0%) Total Size: 1.82 MB
ℹ️ View Unchanged
|
I don't think we should immediately select/focus the comment when you click on a block. Maybe we should highlight it, yes, but not select/focus it. Only once you select/focus the comment/thread, show the reply field at the bottom. Maybe we need some design input for the highlighting, cc @jasmussen |
Flaky tests detected in ffd26bd. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/11913123540
|
Good question, I welcome accessibility best practice advice here. What would be a good experience for someone using a screen reader? I could see solid arguments both ways: Keeping focus in the canvas: you focused a button to add a comment, but focus was not transferred there so it's not disorienting as to where you are actually editing. Downside: clicking the button actually creates a comment, so assuming your intent by clicking the comment was to write one, you then have to press Esc, Esc, Tab, Tab, Tab, in order to type out the comment you just added. Transferring focus to the comment: you invoked the action to "Comment", and now focus is either on the comment itself, the first tabbable item, or the first input field. Benefit: presumably this actually represents your intent: I want to type a comment, and the focus transfer actually takes you to the proper context. Downside, you lose your place in the canvas. What Google does seems reasonable, treating it fully as a modal interaction:
Is this flow reasonable for the block editor as well? |
Closing this out as this enhancement is covered on #67385 |
Part of - #66377
What? & Why?
In inline commenting functionality, Reply input box display on click of reply link of thread. Requirement is to display the reply input on select of thread.
How?
This PR remove the reply button from the dropdown menu on thread and make the reply input visible when thread is focussed or selected.
Testing Instructions
Gutenberg
->Experiments
Screenshots or screencast
Edit-Post-.Hello-world-.-.-gutenberg-.-WordPress.webm