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

Add save button on hover feature is not working on Stack Overflow pages #1

Open
james-hinton opened this issue Mar 4, 2023 · 0 comments
Labels
good first issue Good for newcomers

Comments

@james-hinton
Copy link
Owner

Description:
The 'addSaveButtonOnHover' function that is supposed to add a save button when the user hovers over the code block is not working properly on Stack Overflow pages. It seems to be failing silently, and not giving any error messages.

Expected behavior:
When the user hovers over the code block, a save button should be added to allow them to save the code block.

Steps to reproduce:
Navigate to a Stack Overflow page with code blocks
Hover over a code block
The save button should appear, but it doesn't

Potential fix:
The 'addSaveButtonOnHover' function needs to be updated to work properly with Stack Overflow pages. It may require additional code to properly target the correct elements, or to handle any differences in the HTML structure between Stack Overflow and other sites.

Skills required: JavaScript, DOM manipulation, debugging.

Difficulty level: Easy

Code:
https://github.com/james-hinton/code-stash/blob/main/src/pages/Content/utils/utils.js#LL1

@james-hinton james-hinton added the good first issue Good for newcomers label Mar 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant