Skip to content

fix: copy button visibility issue#3227

Open
rohitdevsol wants to merge 1 commit into
scala:mainfrom
rohitdevsol:rohit/fix-copy-button
Open

fix: copy button visibility issue#3227
rohitdevsol wants to merge 1 commit into
scala:mainfrom
rohitdevsol:rohit/fix-copy-button

Conversation

@rohitdevsol

Copy link
Copy Markdown

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

@rohitdevsol

Copy link
Copy Markdown
Author

@SethTisue hello sir, can you have a look at this PR please .

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