✨(frontend) add h1 for SR on 40X pages and remove alt texts
improves screen reader support on error pages by clarifying structure Signed-off-by: Cyril <c.gromoff@gmail.com>
This commit is contained in:
@@ -25,7 +25,7 @@ and this project adheres to
|
|||||||
- ♿ remove redundant aria-label on hidden icons and update tests #1432
|
- ♿ remove redundant aria-label on hidden icons and update tests #1432
|
||||||
- ♿ improve semantic structure and aria roles of leftpanel #1431
|
- ♿ improve semantic structure and aria roles of leftpanel #1431
|
||||||
- ♿ add default background to left panel for better accessibility #1423
|
- ♿ add default background to left panel for better accessibility #1423
|
||||||
|
- ♿ add h1 for SR on 40X pages and remove alt texts #1438
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
- 🐛(backend) duplicate sub docs as root for reader users
|
- 🐛(backend) duplicate sub docs as root for reader users
|
||||||
|
|||||||
@@ -39,10 +39,13 @@ const Page: NextPageWithLayout = () => {
|
|||||||
$gap="1rem"
|
$gap="1rem"
|
||||||
$padding={{ bottom: '2rem' }}
|
$padding={{ bottom: '2rem' }}
|
||||||
>
|
>
|
||||||
|
<Text as="h1" $textAlign="center" className="sr-only">
|
||||||
|
{t('401 Unauthorized')} - {t('Docs')}
|
||||||
|
</Text>
|
||||||
<Image
|
<Image
|
||||||
className="c__image-system-filter"
|
className="c__image-system-filter"
|
||||||
src={img401}
|
src={img401}
|
||||||
alt={t('Image 401')}
|
alt=""
|
||||||
style={{
|
style={{
|
||||||
maxWidth: '100%',
|
maxWidth: '100%',
|
||||||
height: 'auto',
|
height: 'auto',
|
||||||
|
|||||||
@@ -35,10 +35,13 @@ const Page: NextPageWithLayout = () => {
|
|||||||
$gap="1rem"
|
$gap="1rem"
|
||||||
$padding={{ bottom: '2rem' }}
|
$padding={{ bottom: '2rem' }}
|
||||||
>
|
>
|
||||||
|
<Text as="h1" $textAlign="center" className="sr-only">
|
||||||
|
{t('Page Not Found - Error 404')} - {t('Docs')}
|
||||||
|
</Text>
|
||||||
<Image
|
<Image
|
||||||
className="c__image-system-filter"
|
className="c__image-system-filter"
|
||||||
src={img403}
|
src={img403}
|
||||||
alt={t('Image 403')}
|
alt=""
|
||||||
style={{
|
style={{
|
||||||
maxWidth: '100%',
|
maxWidth: '100%',
|
||||||
height: 'auto',
|
height: 'auto',
|
||||||
|
|||||||
Reference in New Issue
Block a user