diff --git a/src/components/SkipLink.tsx b/src/components/SkipLink.tsx index 06ed104af78..8a7dca751ba 100644 --- a/src/components/SkipLink.tsx +++ b/src/components/SkipLink.tsx @@ -1,28 +1,8 @@ import React from "react" -import styled from "@emotion/styled" -import Translation from "./Translation" - -const Div = styled.div` - background-color: ${(props) => props.theme.colors.primary}; -` - -const Anchor = styled.a` - line-height: 2rem; - position: absolute; - top: -3rem; - margin-left: 0.5rem; - color: ${(props) => props.theme.colors.background}; - text-decoration: none; +import { Box } from "@chakra-ui/react" - &:focus { - position: static; - } -` - -const DivAnchor = styled.div` - height: 80px; - margin-top: -80px; -` +import Translation from "./Translation" +import Link from "../components/Link" export interface IProps { hrefId: string @@ -30,14 +10,24 @@ export interface IProps { export const SkipLink: React.FC = ({ hrefId }) => { return ( -
- + + - -
+ + ) } export const SkipLinkAnchor: React.FC<{ id: string }> = ({ id }) => { - return + return }