[wp-trac] [WordPress Trac] #54426: Add a "Copy URL to clipboard" row action in Media > Library...similar to the botton on the Edit Media screen

WordPress Trac noreply at wordpress.org
Wed Feb 23 14:27:24 UTC 2022


#54426: Add a "Copy URL to clipboard" row action in Media > Library...similar to
the botton on the Edit Media screen
-------------------------------------+-------------------------------------
 Reporter:  pbiron                   |       Owner:  davidbaumwald
     Type:  enhancement              |      Status:  reviewing
 Priority:  normal                   |   Milestone:  6.0
Component:  Media                    |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-screenshots has-     |     Focuses:  ui, accessibility,
  patch needs-testing                |  javascript
-------------------------------------+-------------------------------------

Comment (by afercia):

 Had a look at the patch. It still applies and makes sense to me, good job.
 Just a couple things:
 - I'd recommend to not `blur` the trigger button on success, otherwise
 there will be a focus loss.
 - I'm not sure the 'shifting' effect of other potential custom row actions
 would be a good experience. Maybe in the context of the row actions the
 'Copied!' text should be styled differently. With a few lines of CSS it
 could be styled as a sort of 'tooltip' that appears above the row action
 button. See a very quick example in the screenshot attached below. Wort
 reminding the 'Copied!' text is hidden from assistive technologies so it's
 just a visual thing and it disappears after 3 seconds.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54426#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list