Skip to content

Commit 81903d1

Browse files
authored
fix(docs): Add multiline support for underline animation on cards link (#2424)
1 parent c31a9bf commit 81903d1

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

docs/src/styles/docs/cardLink.scss

+8-6
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
&:hover {
1414
transform: translate3d(0, -2px, 0);
1515
.docs-cardLink-title {
16-
--amplify-border-animation-offset: 100%;
16+
text-shadow: 1px 1px var(--amplify-colors-background-primary);
17+
background-size: 100% var(--amplify-border-widths-medium);
18+
transition-delay: 0s;
1719
}
1820
}
1921
}
@@ -34,12 +36,12 @@
3436
}
3537

3638
.docs-cardLink-title {
37-
display: inline-block;
39+
display: inline;
3840
font-weight: bold;
39-
background: linear-gradient(var(--amplify-colors-font-primary) 0 0) 0 100% /
40-
var(--amplify-border-animation-offset, 0)
41-
var(--amplify-border-widths-medium) no-repeat;
42-
transition: 0.5s;
41+
background: linear-gradient(var(--amplify-colors-font-primary) 0 0) 0 100%
42+
no-repeat;
43+
background-size: 0% var(--amplify-border-widths-medium);
44+
transition: background-size 0.5s ease-in-out 0.1s;
4345
}
4446

4547
// Plain (default) variation

0 commit comments

Comments
 (0)