Skip to content

🐛 [Bug report]: Copy button causes layout shift and lacks clear copy feedback #1654

@harishsehlangia

Description

@harishsehlangia

Contributor Guidelines

  • I have read the guidelines and discussion

Descrcibe the bug?

In the Password Generator play (plays/angryman18/password-generator), clicking the Copy button causes a slight layout shift because the button text changes from "Copy" to "Copied".

Additionally, after copying the password, there is no clear visual feedback on the password input itself, which makes it unclear whether the copy action was successful.

Steps to reproduce the bug?

  1. Go to the Password Generator play.
  2. Generate a password.
  3. Click on the Copy button.
  4. Observe that the button and input container slightly resize.
  5. Notice there is no visual feedback on the password input confirming the copy action.

Expected behavior

  • Clicking the Copy button should not cause any layout shift.
  • The password input should provide clear visual confirmation after the password is copied.
  • The copy button should temporarily indicate the copied state without affecting the layout.

Desktop (Please provide your system information)

  • OS: Windows 11
  • Browser: Google Chrome
  • Version: Latest

Mobile (Please provide your device information)

No response

Screenshot / Screenshare

No response

Relevant log output

No response

Record

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working💻 aspect: codeConcerns the software code in the repository🚦status: awaiting triageHas not been triaged & therefore, not ready for work🛠 goal: fixBug fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions