✨(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:
|
||||
- #1354
|
||||
- ♿ improve accessibility by adding landmark roles to layout #1394
|
||||
|
||||
### Fixed
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -22,6 +22,7 @@ export const Header = () => {
|
||||
return (
|
||||
<Box
|
||||
as="header"
|
||||
role="banner"
|
||||
$css={css`
|
||||
position: fixed;
|
||||
top: 0;
|
||||
|
||||
@@ -35,6 +35,7 @@ export function HomeContent() {
|
||||
return (
|
||||
<Box
|
||||
as="main"
|
||||
role="main"
|
||||
className="--docs--home-content"
|
||||
aria-label={t('Main content')}
|
||||
>
|
||||
|
||||
@@ -34,6 +34,7 @@ export function MainLayout({
|
||||
<LeftPanel />
|
||||
<Box
|
||||
as="main"
|
||||
role="main"
|
||||
aria-label={t('Main content')}
|
||||
id={MAIN_LAYOUT_ID}
|
||||
$align="center"
|
||||
|
||||
@@ -26,6 +26,7 @@ export function PageLayout({
|
||||
<Header />
|
||||
<Box
|
||||
as="main"
|
||||
role="main"
|
||||
$width="100%"
|
||||
$css="flex-grow:1;"
|
||||
aria-label={t('Main content')}
|
||||
|
||||
Reference in New Issue
Block a user