-
-
Notifications
You must be signed in to change notification settings - Fork 336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat ✨: Enhance Copy Button Functionality and UI with Persistent Package Manager Selection #1250
Conversation
|
…t" for improved UI consistency 📝 (copy-button.svelte): Update copy string to improve accessibility and clarity of purpose🎨 (copy-button.svelte): Update copy-button component styles for better UI consistency and accessibility
built with Refined Cloudflare Pages Action⚡ Cloudflare Pages Deployment
|
@Michael-Obele, thanks a ton for this, I will give it a review! |
Glad to help. Looking forward to the review. |
Closing for #1257 as you opened this PR on your Thanks a ton for this! I added some improvements to actually render the correct commands in the code blocks based on the PM! |
Thanks for understanding. |
This pull request addresses issue #1059 by introducing a persistent package manager selection feature. The user's chosen package manager is now saved and automatically used across pages within a session, improving user experience and reducing friction.
Key Improvements:
selectedCommand
value when a command is copied.CaretSort
icon, providing a clearer visual indication.handleCopyDone
function has been corrected to ensure accurate updating of theselectedCommand
value.Changes:
selectedCommand
writable store to manage user preferences.copy-button.svelte
to use the selected package manager and dynamically updateselectedCommand
.CaretSort
icon and allow modification of the package manager.handleCopyDone
function for accurateselectedCommand
updates.Testing:
selectedCommand
is updated correctly.Showcase
Screencast.from.2024-08-24.09-57-28.webm