Skip to content

Commit

Permalink
fix(links): adopt visited link colors from Firefox (#9961)
Browse files Browse the repository at this point in the history
Ensures that visited links are readable in all browsers, including Safari.
  • Loading branch information
caugner authored Nov 8, 2023
1 parent 4401c3e commit 29839fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/document/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@

&:visited:not([href^="#"]) {
// Distinguish visited links (excl. anchor links).
color: revert;
color: var(--text-visited);
}

&:active,
Expand Down
2 changes: 2 additions & 0 deletions client/src/ui/base/_themes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
--text-secondary: #{$mdn-theme-light-text-secondary};
--text-inactive: #{$mdn-theme-light-text-inactive};
--text-link: #{$mdn-theme-light-text-link};
--text-visited: #551a8b; // Source: https://searchfox.org/mozilla-central/rev/02841791400cf7cf5760c0cfaf31f5d772624253/modules/libpref/init/StaticPrefList.yaml#1787-1790
--text-invert: #{$mdn-theme-light-text-invert};

--background-primary: #{$mdn-theme-light-background-primary};
Expand Down Expand Up @@ -205,6 +206,7 @@
--text-secondary: #{$mdn-theme-dark-text-secondary};
--text-inactive: #{$mdn-theme-dark-text-inactive};
--text-link: #{$mdn-theme-dark-text-link};
--text-visited: #ffadff; // Source: https://searchfox.org/mozilla-central/rev/02841791400cf7cf5760c0cfaf31f5d772624253/modules/libpref/init/StaticPrefList.yaml#1794-1797
--text-invert: #{$mdn-theme-dark-text-invert};

--background-primary: #{$mdn-theme-dark-background-primary};
Expand Down

0 comments on commit 29839fb

Please sign in to comment.