diff options
| author | Armand Philippot <git@armandphilippot.com> | 2021-12-22 14:29:08 +0100 | 
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2021-12-22 14:32:57 +0100 | 
| commit | fe5d74a864ddd1429b0753a3984c45b2392176d2 (patch) | |
| tree | 43780acb909d3907ae0cc2143e77e79c07572890 /src/components | |
| parent | 139b3a252c9f90de603be1a98e3186b359353541 (diff) | |
chore: add a skip to content link
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/Layouts/Layout.tsx | 2 | ||||
| -rw-r--r-- | src/components/Main/Main.tsx | 2 | 
2 files changed, 3 insertions, 1 deletions
| diff --git a/src/components/Layouts/Layout.tsx b/src/components/Layouts/Layout.tsx index 8c5570f..35e7d27 100644 --- a/src/components/Layouts/Layout.tsx +++ b/src/components/Layouts/Layout.tsx @@ -3,6 +3,7 @@ import Footer from '@components/Footer/Footer';  import Header from '@components/Header/Header';  import Main from '@components/Main/Main';  import Breadcrumb from '@components/Breadcrumb/Breadcrumb'; +import { t } from '@lingui/macro';  const Layout = ({    children, @@ -13,6 +14,7 @@ const Layout = ({  }) => {    return (      <> +      <a href="#main" className="screen-reader-text">{t`Skip to content`}</a>        <Header isHome={isHome} />        <Main>{children}</Main>        <Footer /> diff --git a/src/components/Main/Main.tsx b/src/components/Main/Main.tsx index cc47443..8b2e822 100644 --- a/src/components/Main/Main.tsx +++ b/src/components/Main/Main.tsx @@ -3,7 +3,7 @@ import styles from './Main.module.scss';  const Main: FunctionComponent = ({ children }) => {    return ( -    <main className={styles.wrapper}> +    <main id="main" className={styles.wrapper}>        <div className={styles.body}>{children}</div>      </main>    ); | 
