Skip to content
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

Added the feature of copying the headings using link icon #70

Closed
wants to merge 1 commit into from
Closed

Added the feature of copying the headings using link icon #70

wants to merge 1 commit into from

Conversation

tarunsinghofficial
Copy link
Contributor

Description:

Added a feature for enhancing the user experience by providing a seamless way to copy direct links to specific headings within the content using a link icon next to headings. Features implemented:

  • Improved Copy Functionality
  • Smooth Scrolling
  • Visibility Toggle

Issue fixed:

Fixed #69

Changes done:

  • Task 1

Screenshots/Videos

bandicam2024-03-1212-18-59-504-ezgif com-crop

✅️ By submitting this PR, I have verified the following

  • Checked to see if a similar PR has already been opened 🤔️
  • Reviewed the contributing guidelines 🔍️
  • Tried squashing the commits into one

Copy link
Member

@aaronbrethorst aaronbrethorst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is cool, thanks for adding it! I see a few things that will need to be addressed before merging.

  1. The link icons are invisible in light mode.
  2. the <svg> elements you're generating all have the id link. An id is supposed to be unique on the page.
  3. clicking the link icon scrolls the page. it should only copy to the clipboard.

2024-03-12 08 22 39

@aaronbrethorst
Copy link
Member

make sure you've pulled the latest bits from main and rebased on top of them. #74 will affect this PR.

@tarunsinghofficial
Copy link
Contributor Author

Okay! Got it. I am working on this.

@tarunsinghofficial tarunsinghofficial closed this by deleting the head repository Mar 13, 2024
@tarunsinghofficial
Copy link
Contributor Author

I am working on this PR again as I have some issues in my local storage.

@tarunsinghofficial
Copy link
Contributor Author

HI @aaronbrethorst, a new PR #90 has been created in place of the given PR. Please check it! Thanks.

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.

Feature: Implement Copy Functionality for Direct Links to Specific Headings
2 participants