The copy button in the documentation is broken

Open Beginner friendly
#3,025 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@kfenner is already working on this.

Since Oct 23, 2026.

  • #3046 by @kfenner — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
angular, typescript

Research direction

Reproduce the bug on the linked development documentation page by using a code section's copy button, then inspect the documentation code section and clipboard handling entry points. Trace how the button finds its code text and compare that with the first code section on the page. Done when each copy button copies its own code section; verify with multiple sections on the same page.

Written by the indexing model from the issue text.

Description

bug documentation

When using the copy to clipboard button in a code section in our documentation, it always copies just the text of the first code section on that page, not the text of the code section of the button.

The issue exists also in all deployed Element documentation versions (48, 49, 51, development).

I mean this copy button in the code sections:

Image

Experience it yourself e.g. here: https://element.siemens.io/development/components/layout-navigation/split/#horizontal-collapsed-heading-direction

Dominant language
TypeScript
Stars
85
Forks
28
Avg merge
1d 23h
Merged PRs (30d)
162

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from siemens/element

All issues in siemens/element

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.