Skip to content

bug: on daisyui.com, when copying a component, classes come through with $$<class name> #4536

Closed

Description

@hulumibuna

Reproduction URL (Required)

https://daisyui.com/components/navbar/

What version of daisyUI are you using?

v5.5.20

Which browsers are you seeing the problem on?

Chrome, Other

Describe your issue

The source code on the docs site uses $$ prefixes on all class names (like $$navbar, $$btn, $$dropdown-content). The Copy button on the website is supposed to strip those out and give you clean HTML. If that copy mechanism glitched, you'd end up with broken class names and a messed up layout.

Working on Linux Mint, using Brave browser.

I didn't see any links on the main website to report this issue so I hope this is the right place to report it.

Activity

  1. github-actions commented on May 29, 2026

    @github-actions

    Thank you @hulumibuna for reporting issues. It helps daisyUI a lot 💚
    I'll be working on issues one by one. I will help with this one as soon as a I find a solution.
    In the meantime providing more details and reproduction links would be helpful.

  2. added a commit that references this issue on May 30, 2026
    7a1998d
  3. added a commit that references this issue on Jun 6, 2026
    d6f2e7f
  4. added a commit that references this issue on Jun 25, 2026
    e37aa03
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