The Copy button of the PostURL shouldn't be placed in the slug input #63700
Labels
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
Needs Design Feedback
Needs general design feedback.
[Package] Editor
/packages/editor
[Type] Bug
An existing feature does not function as intended
Description
Noticed while working on #61196 / #63669
In the PostURL popover, there is a
Copy
button that is visually placed within the slug input field. As such, it is visually associated with the slug value. Screenshot:As a user, I would expect the Copy button to copy the value that is inside the input field, because that's what the UI is showing me.
Instead, the Copy button actually copies the full permalink that is shown below the input field.
Following the example in the screenshot above:
/my-post-title
.Copy
and is visually associated with the input field.http://localhost:8889/my-post-title/
instead.I'm not sure this is a good UI as it is potentially confusing for users. Also, it is inconsistent with other UIs where the Copy button actually copies the value shown in the input field.
Step-by-step reproduction instructions
See above.
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
The text was updated successfully, but these errors were encountered: