On click it shows a toast notification and a little checkmark on the copy button, to indicate the copy action happened.
Desktop only – mobile has native copy popup support.
Only the post menu button is impacted, the timestamp and topic share button remain the same.
Previous version changes
The previous version had similar functionality on mobile, but decided to drop this in favor of the native support.
It also had the option to keep the original share-modal button in the post menu actions, but removed that for now to avoid confusion and complexity. So in the latest version, you choose either type A or type B functionality.
The toasty was shown in the bottom right corner, but on large screens this was too far from the action, so moved it closer
just to clarify, i believe the existing share button is also optional to show in admin-settings under post menu? (which of course is the same as clicking the timestamp in top right corner of a post)
When signed out, only the copy button should appear. It would make the anonymous sharing process easier for logged out users and two copy buttons arent needed
I worked with @chapoi to merge this into core this week, and it’s here now:
You should uninstall this theme component if you have it installed.
A new post_menu button, copyLink, is added and used as the default instead of share. If site owners want the old behaviour back, they just need to change the post_menu site setting to use the share button instead of copyLink.
On desktop, this button will copy the link of the post to the user’s clipboard and show a nice animation. On mobile the native share menu will be shown.
As the functionality of this theme component is now included as a core feature, please create supportfeatureuxbug topics for any issues you encounter or any suggestions you may have.