Skip to content

Commit 39f6fc1

Browse files
committed
Update link.less
1 parent f2dcd2f commit 39f6fc1

File tree

1 file changed

+3
-28
lines changed

1 file changed

+3
-28
lines changed

packages/stacks-classic/lib/components/link/link.less

Lines changed: 3 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,3 @@
1-
// // TODO we *really* shouldn't be apply styles directly onto `<a>` like this, but
2-
// // it's tech debt that'll take some doing in consumer's code to pay down.
3-
// a {
4-
// // We're target these specific selectors to avoid affecting the visited state of stacks components
5-
// // not specified here. See for https://github.com/StackExchange/Stacks/pull/1740#discussion_r1698389312
6-
// // TODO remove .post-tag, .badge, .badge-tag reference once core no longer requires them
7-
// &:not([class*="s-"]):not(.post-tag):not(.badge):not(.badge-tag),
8-
// &.s-sidebarwidget--action {
9-
// // Use --_an-a-* (.s-anchors a) custom properties when they're defined.
10-
// // Otherwise, use the default link colors.
11-
// &:active,
12-
// &:hover {
13-
// color: var(--_an-a-fc-hover, var(--_li-fc-hover));
14-
// }
15-
16-
// &:visited {
17-
// color: var(--_an-a-fc-visited, var(--_li-fc-visited));
18-
// }
19-
20-
// &:hover:visited {
21-
// color: var(--_an-a-fc-hover-visited, var(--_li-fc-hover-visited));
22-
// }
23-
// }
24-
// }
25-
261
// Reset browser default underline for Stacks component anchors (e.g. .s-navigation--item).
272
// Without this components that use <a> but don't use .s-link would inherit underline.
283
a[class*="s-"] {
@@ -34,8 +9,8 @@ a[class*="s-"] {
349
.s-prose a:not([class*="s-"]) {
3510
--_li-fc: var(--theme-link-color, var(--black-600));
3611
--_li-fc-hover: var(--theme-link-color-hover, var(--blue-400));
37-
--_li-fc-visited: var(--theme-link-color-visited, var(--black-500));
38-
--_li-fc-hover-visited: var(--theme-link-color-visited, var(--black-500));
12+
--_li-fc-visited: var(--theme-link-color-visited, var(--black-400));
13+
--_li-fc-hover-visited: var(--theme-link-color-visited, var(--black-400));
3914

4015
.highcontrast-mode({
4116
text-decoration: underline;
@@ -123,7 +98,7 @@ a[class*="s-"] {
12398
&__muted {
12499
--_li-fc: var(--black-400);
125100
--_li-fc-hover: var(--blue-400);
126-
--_li-fc-visited: var(--black-500);
101+
--_li-fc-visited: var(--black-400);
127102
}
128103

129104
fieldset[disabled] & {

0 commit comments

Comments
 (0)