fix(404): properly style link

This commit is contained in:
Jean-Philippe Sirois
2020-01-26 12:56:32 -05:00
parent b154d0c515
commit fd656fdb66
2 changed files with 19 additions and 3 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
import { WindowLocation } from "@reach/router"
import { Link } from "gatsby"
import React, { FC, Fragment } from "react"
import * as SC from "./styles"
import { FileConnection } from "../../../generated/graphql"
@@ -104,9 +104,9 @@ export const PossibleCorrections: FC<IPossibleCorrections> = ({
{displayArray.map((value, index) => {
return (
<li key={index}>
<Link to={`${basepath}${value.node.relativePath}`}>
<SC.StyledLink to={`${basepath}${value.node.relativePath}`}>
{value.node.relativePath}
</Link>
</SC.StyledLink>
</li>
)
})}
@@ -0,0 +1,16 @@
import { Link } from "gatsby"
import styled from "styled-components"
export const StyledLink = styled(Link)`
color: #0090d8;
font-weight: 700;
border-bottom: 2px solid;
text-decoration: none;
transition: color 0.3s;
&:hover,
&:focus {
color: #5dbbea;
transition: none;
}
`