Skip to content

Commit

Permalink
fix: error page accesibility heading order issue
Browse files Browse the repository at this point in the history
  • Loading branch information
g-saracca committed Oct 17, 2024
1 parent 28e652f commit b0efbbc
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
12 changes: 12 additions & 0 deletions src/sections/error-page/ErrorPage.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,16 @@
justify-content: center;
width: 100%;
padding-block: 2rem;

h1 {
display: flex;
flex-direction: column;
gap: 0.5rem;
margin: 0;

span {
display: block;
font-size: 22px;
}
}
}
8 changes: 4 additions & 4 deletions src/sections/error-page/ErrorPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ export function ErrorPage({ fullViewport = false }: AppLoaderProps) {
<div className={styles['middle-errorMessage-wrapper']}>
<div className={styles['icon-layout']}>
<ExclamationCircle color={theme.color.dangerColor} size={62} />
<div aria-label="error-page">
<h1>{t('message.heading')}</h1>
<h4>{t('message.errorText')}</h4>
</div>
<h1>
{t('message.heading')}
<span>{t('message.errorText')}</span>
</h1>
</div>

<Link to="/" className="btn btn-secondary">
Expand Down

0 comments on commit b0efbbc

Please sign in to comment.