(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:
Cyril
2025-09-17 08:14:30 +02:00
parent ecd2f97cf5
commit 1e39d17914
6 changed files with 11 additions and 1 deletions

View File

@@ -12,6 +12,7 @@ and this project adheres to
- ♿(frontend) improve accessibility:
- #1354
- ♿ improve accessibility by adding landmark roles to layout #1394
### Fixed

View File

@@ -56,7 +56,12 @@ export const Footer = () => {
}
return (
<Box $position="relative" as="footer" className="--docs--footer">
<Box
$position="relative"
as="footer"
role="contentinfo"
className="--docs--footer"
>
<BlueStripe />
<Box $padding={{ top: 'large', horizontal: 'big', bottom: 'small' }}>
<Box

View File

@@ -22,6 +22,7 @@ export const Header = () => {
return (
<Box
as="header"
role="banner"
$css={css`
position: fixed;
top: 0;

View File

@@ -35,6 +35,7 @@ export function HomeContent() {
return (
<Box
as="main"
role="main"
className="--docs--home-content"
aria-label={t('Main content')}
>

View File

@@ -34,6 +34,7 @@ export function MainLayout({
<LeftPanel />
<Box
as="main"
role="main"
aria-label={t('Main content')}
id={MAIN_LAYOUT_ID}
$align="center"

View File

@@ -26,6 +26,7 @@ export function PageLayout({
<Header />
<Box
as="main"
role="main"
$width="100%"
$css="flex-grow:1;"
aria-label={t('Main content')}