Added copy button feature with styled code block
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 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.
The latest updates on your projects. Learn more about Vercel for GitHub.
| Project | Deployment | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| learn-javascript | Oct 29, 2025 10:45pm |
@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?
Closing this since there hasnโt been any activity for over a month. Youโre welcome to reopen the PR anytime.