Skip to content

Copy operation path to clipboard button icon is doubled and does not hide correctly #11046

Description

@Azquelt

Q&A (please complete the following information)

  • OS: Linux
  • Browser: firefox + chrome
  • Version: 155 + 153
  • Method of installation: dist assets
  • Swagger-UI version: 5.32.14
  • Swagger/OpenAPI version: tested with Swagger 2.0, OpenAPI 3.0, 3.1

Content & configuration

Open dist/index.html with the default example.

Describe the bug you're encountering

  1. The background of the copy-to-clipboard icon on each operation shrinks away when not hovered over, but the icon itself remains visible at all times
  2. The copy-to-clipboard icon on each operation is doubled and slightly offset

To reproduce...

Steps to reproduce the behavior:

  1. Open dist/index.html with the default example.
  2. Roll over an operation

Expected behavior

The icon should disappear when not hovered as it did in 5.32.13

Screenshots

5.32.14 (broken):

Image

5.32.14 with brightness curves adjusted so the problem is more visible:

Image

5.32.13 (good):

Image

Additional context or thoughts

I think this was introduced by #10999

The doubled icon seems to be because the icon is both the button content and the button background.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions