Skip to content

Conversation

@heygogu
Copy link

@heygogu heygogu commented Oct 28, 2025

Fixes issue: #3226

The copy buttons were missing on code blocks within the Learn (Scala 2/3) pages, while they worked correctly on other sections such as Downloads.

Cause:
These pages render plain code blocks without the .code-snippet-area wrapper required by the existing copy-button script.

Fix
Added a small jQuery script that dynamically wraps unwrapped code blocks in a .code-snippet-area and injects a copy button, ensuring consistent behavior across all pages.

Result:
✅ Copy button now shows and works correctly across Learn, Scala Book, and Download pages.

Screen.Recording.2025-10-28.at.1.16.07.PM.mov

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant