-
-
Notifications
You must be signed in to change notification settings - Fork 560
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
refactor: improve functionality and accessibility for share and copy components 🪄✨ #1517
refactor: improve functionality and accessibility for share and copy components 🪄✨ #1517
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, 0xabdulkhalid, for creating this pull request and contributing to LinksHub! 💗
The maintainers will review this Pull Request and provide feedback as soon as possible! 😇
We appreciate your patience and contribution, Keep up the great work! 😀
Hey there Guys 👋🏻 @rupali-codes, @CBID2 & @k-deepak04 Make sure to review this PR, So that we can quickly wrap this up. Otherwise I want to resolve merge conflicts once again. Thank You! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resolve the conflicts
@0xabdulkhalid can u please resolve conflicts asap? |
@rupali-codes Conflicts are resolved! Please merge this PR now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks
Fixes Issue
Close #1479
Note
This is PR is a retry of #1492
Changes proposed
This PR introduces several significant enhancements to the
CopyToClipboard.tsx
andShare.tsx
files, focusing on code refactoring and accessibility improvements. The key changes are as follows:Code Refactoring: Both
CopyToClipboard.tsx
andShare.tsx
components have undergone code refactoring to remove unnecessary elements, such as wrapping divs, and improve code readability and maintainability.Improved Accessibility: The accessibility of the components has been greatly enhanced. We replaced the
title
attributes with more descriptive and accessiblearia-label
attributes for the icons. Additionally, we introducedaria-live="polite"
to announce changes to screen readers in a polite manner.Styling Enhancement: The inline styles in the components have been removed, and we now rely on CSS classes for styling. This makes the code more organized and easier to manage.
Reduced Bloatware: We have trimmed unnecessary elements and styles, resulting in a leaner and more efficient codebase.
Icon Change on Success: When the copy action is successful, the copy icon now changes to a checkmark icon (
FaCheckSquare
). This gives users clear feedback on the success of the copy operation.Resetting Copied Icon: The copied icon now resets back to the original copy icon (
FaRegCopy
) after 2 seconds, ensuring a smoother user experience.With these improvements, the
CopyToClipboard
andShare
components are now more accessible, efficient, and user-friendly. The PR contributes to the overall enhancement of the repository's codebase and user experience.