Skip to content

"Copy permalink" button only works when padding area is clicked #18274

@luminuu

Description

@luminuu

Describe the bug
On the permalink options above the title, the "copy permalink" on the very left side only works on mouse clicks when clicking into the padding area between the SVG icon and the border.
It does work with focusing the element via the keyboard and hitting enter.

To reproduce
Steps to reproduce the behavior:

  1. Go to a saved post or page, where a permalink is available.
  2. Click on the title, the permalink options appear.
  3. Click on the "copy permalink" button on the left, exactly on the SVG image.
  4. The permalink options close, but the permalink was not copied.
  5. Open the permalink options again by clicking on the title.
  6. Now repeat to click on the "copy permalink" button, this time in the white space between the SVG image and the border of the button. The permalink get's copied and the options bar doesn't close yet.

Expected behavior
Clicking on the icon itself should also copy the permalink and not close the options bar immediately.

Gif
Copy permalink issue

Desktop (please complete the following information):

  • OS: macOS 10.14.6
  • Browser Firefox 70

Additional context

  • WordPress 5.3-RC3-46639
  • Gutenberg Plugin NOT installed

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Feature] PermalinkThe permalink of a post or page and the experience of setting or editing it[Type] BugAn existing feature does not function as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions