Skip to content

Commit 207127c

Browse files
asudohtw15egan
authored andcommitted
fix(link): color adjustments (#2144)
Refs IBM/carbon-components-react#2061.
1 parent 3e05031 commit 207127c

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

src/components/link/_link.scss

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,28 +54,24 @@
5454
.#{$prefix}--link {
5555
@include reset;
5656
@include type-style('body-long-01');
57-
color: $interactive-01;
57+
color: $link-01;
5858
text-decoration: none;
5959
outline: none;
6060
transition: $duration--fast-01 motion(standard, productive);
6161

6262
&:hover {
63-
color: $interactive-01;
64-
box-shadow: 0 1px $interactive-01;
63+
color: $link-01;
64+
box-shadow: 0 1px currentColor;
6565
}
6666

6767
&:active,
6868
&:active:visited {
6969
color: $text-01;
70-
box-shadow: 0 1px $text-01;
70+
box-shadow: 0 1px currentColor;
7171
}
7272

7373
&:focus {
74-
box-shadow: 0 3px $interactive-01;
75-
}
76-
77-
&:focus:active {
78-
box-shadow: 0 1px $text-01;
74+
box-shadow: 0 3px $link-01;
7975
}
8076

8177
&:not([href]) {
@@ -90,7 +86,7 @@
9086
}
9187

9288
&:visited {
93-
color: $interactive-01;
89+
color: $link-01;
9490
}
9591
}
9692

0 commit comments

Comments
 (0)