First accessability changes (#200)

* First accessability changes

* Add <main>

* <header>
main
Michael Fix 7 years ago committed by Jake Dexheimer
parent 85a6385178
commit 048ab355ff

@ -3,8 +3,8 @@ import Link from 'next/link'
import { COLORS } from '../lib/constants' import { COLORS } from '../lib/constants'
const Footer = props => ( const Footer = props => (
<div className="mt3"> <footer role="contentinfo" className="mt3">
<div className="mt3"> <nav role="navigation" className="mt3">
<Link href="/about"> <Link href="/about">
<a className="link">about</a> <a className="link">about</a>
</Link> </Link>
@ -14,7 +14,7 @@ const Footer = props => (
<a className="link" href="https://github.com/dawnlabs/carbon"> <a className="link" href="https://github.com/dawnlabs/carbon">
source source
</a> </a>
</div> </nav>
<div className="mt3 mb2"> <div className="mt3 mb2">
a project by{' '} a project by{' '}
<a className="dawn-link" href="https://dawnlabs.io"> <a className="dawn-link" href="https://dawnlabs.io">
@ -23,7 +23,7 @@ const Footer = props => (
¬ ¬
</div> </div>
<style jsx>{` <style jsx>{`
div > div { footer > div {
text-align: center; text-align: center;
font-size: 14px; font-size: 14px;
color: ${COLORS.GRAY}; color: ${COLORS.GRAY};
@ -46,7 +46,7 @@ const Footer = props => (
color: #fff; color: #fff;
} }
`}</style> `}</style>
</div> </footer>
) )
export default Footer export default Footer

@ -2,7 +2,7 @@ import React from 'react'
import Logo from './svg/Logo' import Logo from './svg/Logo'
const Header = ({ enableHeroText }) => ( const Header = ({ enableHeroText }) => (
<div className="header mb4"> <header role="banner" className="header mb4">
<div className="header-content"> <div className="header-content">
<a id="link-home" href="/" aria-label="Home"> <a id="link-home" href="/" aria-label="Home">
<Logo /> <Logo />
@ -33,7 +33,7 @@ const Header = ({ enableHeroText }) => (
text-align: center; text-align: center;
} }
`}</style> `}</style>
</div> </header>
) )
export default Header export default Header

@ -4,7 +4,7 @@ import Header from './Header'
import Footer from './Footer' import Footer from './Footer'
export default ({ children, enableHeroText }) => ( export default ({ children, enableHeroText }) => (
<div className="main mt4 mb4"> <main className="main mt4 mb4">
<Meta /> <Meta />
<Header enableHeroText={enableHeroText} /> <Header enableHeroText={enableHeroText} />
<div className="page">{children}</div> <div className="page">{children}</div>
@ -19,5 +19,5 @@ export default ({ children, enableHeroText }) => (
align-items: center; align-items: center;
} }
`}</style> `}</style>
</div> </main>
) )

Loading…
Cancel
Save