✨(frontend) improve accessibility by adding landmark roles to layout
landmark roles help assistive tech users navigate quickly across the page Signed-off-by: Cyril <c.gromoff@gmail.com>
This commit is contained in:
@@ -12,6 +12,7 @@ and this project adheres to
|
|||||||
|
|
||||||
- ♿(frontend) improve accessibility:
|
- ♿(frontend) improve accessibility:
|
||||||
- #1354
|
- #1354
|
||||||
|
- ♿ improve accessibility by adding landmark roles to layout #1394
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
|
|||||||
@@ -56,7 +56,12 @@ export const Footer = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box $position="relative" as="footer" className="--docs--footer">
|
<Box
|
||||||
|
$position="relative"
|
||||||
|
as="footer"
|
||||||
|
role="contentinfo"
|
||||||
|
className="--docs--footer"
|
||||||
|
>
|
||||||
<BlueStripe />
|
<BlueStripe />
|
||||||
<Box $padding={{ top: 'large', horizontal: 'big', bottom: 'small' }}>
|
<Box $padding={{ top: 'large', horizontal: 'big', bottom: 'small' }}>
|
||||||
<Box
|
<Box
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ export const Header = () => {
|
|||||||
return (
|
return (
|
||||||
<Box
|
<Box
|
||||||
as="header"
|
as="header"
|
||||||
|
role="banner"
|
||||||
$css={css`
|
$css={css`
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ export function HomeContent() {
|
|||||||
return (
|
return (
|
||||||
<Box
|
<Box
|
||||||
as="main"
|
as="main"
|
||||||
|
role="main"
|
||||||
className="--docs--home-content"
|
className="--docs--home-content"
|
||||||
aria-label={t('Main content')}
|
aria-label={t('Main content')}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ export function MainLayout({
|
|||||||
<LeftPanel />
|
<LeftPanel />
|
||||||
<Box
|
<Box
|
||||||
as="main"
|
as="main"
|
||||||
|
role="main"
|
||||||
aria-label={t('Main content')}
|
aria-label={t('Main content')}
|
||||||
id={MAIN_LAYOUT_ID}
|
id={MAIN_LAYOUT_ID}
|
||||||
$align="center"
|
$align="center"
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ export function PageLayout({
|
|||||||
<Header />
|
<Header />
|
||||||
<Box
|
<Box
|
||||||
as="main"
|
as="main"
|
||||||
|
role="main"
|
||||||
$width="100%"
|
$width="100%"
|
||||||
$css="flex-grow:1;"
|
$css="flex-grow:1;"
|
||||||
aria-label={t('Main content')}
|
aria-label={t('Main content')}
|
||||||
|
|||||||
Reference in New Issue
Block a user