learn-javascript icon indicating copy to clipboard operation
learn-javascript copied to clipboard

Added copy button feature with styled code block

Open IshikaBanga26 opened this issue 2 months ago โ€ข 2 comments

This pull request adds a โ€œCopyโ€ button to the code snippet section in the Tip Calculator example, allowing users to easily copy example code with one click. Additionally, minor UI improvements have been made to enhance readability and visual separation.

Changes Made:

Added a Copy button with clipboard functionality.

Styled

 blocks with a light background and border for better contrast.

Added margin above the code section for clear spacing.

Enhanced button hover feedback and alignment.

Impact:

Improves user experience and accessibility.

Makes example sections more interactive and visually clear.

IshikaBanga26 avatar Oct 29 '25 18:10 IshikaBanga26

@IshikaBanga26 is attempting to deploy a commit to the Suman Kunwar's projects Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Oct 29 '25 18:10 vercel[bot]

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
learn-javascript Error Error Oct 29, 2025 10:45pm

vercel[bot] avatar Oct 29 '25 22:10 vercel[bot]

@IshikaBanga26 Thanks for the PR, it seems the addition of the toc-accordion is causing problem in the build? Can you have a look into it when you have time?

sumn2u avatar Nov 25 '25 23:11 sumn2u

Closing this since there hasnโ€™t been any activity for over a month. Youโ€™re welcome to reopen the PR anytime.

sumn2u avatar Nov 29 '25 11:11 sumn2u