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

feat(links): distinguish visited links (v2) #9931

Merged
merged 4 commits into from
Nov 6, 2023

Conversation

caugner
Copy link
Contributor

@caugner caugner commented Nov 2, 2023

Summary

Fixes #9672 and avoids #9921.

Problem

Visited and unvisited links are not distinguished on MDN.

Solution

Distinguish visited links by reverting their color to the default color from the browser styles.


Screenshots

Note: This time, the screenshots were captured on port 5042 and contain a heading.

Before

image image

After

image image

How did you test this change?

Ran yarn && yarn dev and opened http://localhost:3000/en-US/docs/Web/HTML locally.

@caugner caugner requested a review from a team as a code owner November 2, 2023 20:23
@caugner caugner temporarily deployed to xyz November 2, 2023 20:28 — with GitHub Actions Inactive
@caugner caugner marked this pull request as draft November 2, 2023 21:30
@caugner caugner removed the request for review from mirunacurtean November 2, 2023 21:30
@caugner caugner force-pushed the distinguish-visited-links-v2 branch 3 times, most recently from 13db232 to 86c354c Compare November 2, 2023 21:43
@caugner caugner force-pushed the distinguish-visited-links-v2 branch from 86c354c to 73ffa68 Compare November 2, 2023 21:54
@caugner caugner marked this pull request as ready for review November 3, 2023 11:34
@OnkarRuikar
Copy link
Contributor

OnkarRuikar commented Nov 3, 2023

Need to publish to NPM after merge. Preview pages are still showing blue links: https://pr29943.content.dev.mdn.mozit.cloud/en-US/docs/Web/API/Popover_API/Using

@caugner
Copy link
Contributor Author

caugner commented Nov 3, 2023

Need to publish to NPM after merge. Preview pages are still showing blue links: https://pr29943.content.dev.mdn.mozit.cloud/en-US/docs/Web/API/Popover_API/Using

I merged #9920, so v2.33.1 should be published soon.

Copy link
Contributor

@fiji-flo fiji-flo left a comment

Choose a reason for hiding this comment

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

Look good, thanks for fixing. Also: deployed to stage!

@caugner caugner added ux make the user experience awesome typography Issues related to font color/decoration/size/weight labels Nov 3, 2023
@caugner caugner merged commit 76b9e7a into main Nov 6, 2023
13 checks passed
@caugner caugner deleted the distinguish-visited-links-v2 branch November 6, 2023 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
typography Issues related to font color/decoration/size/weight ux make the user experience awesome
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make the colors of the visited and not visited links different
3 participants