File tree Expand file tree Collapse file tree 4 files changed +39
-2
lines changed Expand file tree Collapse file tree 4 files changed +39
-2
lines changed Original file line number Diff line number Diff line change 1
1
import React from "react" ;
2
2
import PropTypes from "prop-types" ;
3
3
4
+ import Link from "../../images/svgs/link.svg" ;
5
+
4
6
class ChangelogItem extends React . Component {
5
7
componentDidMount ( ) {
6
8
const hash = document . location . hash ;
@@ -11,7 +13,7 @@ class ChangelogItem extends React.Component {
11
13
( ) =>
12
14
document
13
15
. getElementById ( hash . substr ( 1 ) )
14
- . scrollIntoView ( { block : "start" , behavior : "smooth" } ) ,
16
+ . scrollIntoView ( { block : "start" } ) ,
15
17
50
16
18
) ;
17
19
}
@@ -52,7 +54,7 @@ class ChangelogItem extends React.Component {
52
54
className = "mt-0 text-2xl font-normal"
53
55
itemProp = "alternativeHeadline"
54
56
>
55
- { title }
57
+ < a href = { `# ${ link } ` } className = "changelog-anchor-link" > < Link /> </ a > { title }
56
58
</ h2 >
57
59
< div
58
60
className = "changelog-entry"
Original file line number Diff line number Diff line change 1
1
.btn [aria-current = "page" ] {
2
2
@apply bg-BaseBlue text-white;
3
3
}
4
+
5
+ .changelog-anchor-link svg {
6
+ width : 22px ;
7
+ height : 22px ;
8
+ padding : 4px ;
9
+ margin-right : .5rem ;
10
+ position : relative;
11
+ top : 3px ;
12
+ @apply rounded;
13
+ }
14
+
15
+ .changelog-anchor-link svg : hover ,
16
+ .changelog-anchor-link svg : focus {
17
+ @apply bg-grey text-white;
18
+ }
Original file line number Diff line number Diff line change 8
8
@apply my-4;
9
9
}
10
10
11
+ .changelog-entry ul p {
12
+ @apply mt-0;
13
+ }
14
+
11
15
.int-changelog .changelog-product {
12
16
display : none;
13
17
}
You can’t perform that action at this time.
0 commit comments