File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
docusaurus/src/components/FeaturesList Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ export function FeatureListItem({
14
14
...rest
15
15
} ) {
16
16
const ContentElement = ( ( href || to ) ? LinkWithArrow : 'span' ) ;
17
+ const IconElement = ( ( href || to ) ? 'a' : 'span' ) ;
17
18
18
19
return (
19
20
< li
@@ -23,14 +24,17 @@ export function FeatureListItem({
23
24
) }
24
25
>
25
26
{ Icon && (
26
- < span
27
+ < IconElement
27
28
className = { clsx (
28
29
styles [ 'features-list__item__icon' ] ,
29
30
( iconColor && styles [ `features-list__item__icon--${ iconColor } ` ] ) ,
30
31
) }
32
+ href = { href }
33
+ to = { to }
34
+ { ...( IconElement === 'a' ? { href : to || href } : { } ) }
31
35
>
32
36
< Icon />
33
- </ span >
37
+ </ IconElement >
34
38
) }
35
39
< ContentElement
36
40
className = { styles [ 'features-list__item__content' ] }
You can’t perform that action at this time.
0 commit comments