-
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
Add: Copy all content to edit site #37781
Conversation
Size Change: +148 B (0%) Total Size: 1.13 MB
ℹ️ View Unchanged
|
@jorgefilipecosta Could you please guide me on how to find this button? I'd like to give it a try for accessibility. Thanks! |
|
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.
Code is a bit more complex than on the edit post page. I do have not enough knowledge to validate the internal implementation of getText
callback, but the rest looks nearly identical.
packages/edit-site/src/components/header/more-menu/copy-content-menu-item.js
Show resolved
Hide resolved
Linter complains about formatting. Otherwise, with the explanation for how |
cd0bcf4
to
eea24a5
Compare
Hi @alexstine, this PR was merged, but I'm open to iterating on the a11y. This PR follows what happens edit-post if there is any a11y issue it affects both screens and I will gladly iterate and try to fix it. |
@jorgefilipecosta Works perfectly on latest trunk. Thanks! |
Thank you for the tests @alexstine 👍 |
Part of #21245.
Bring the Copy all content functionality to the site editor.
How has this been tested?
I verified the "Copy all content" button works well on both templates and template parts.
Screenshots