summaryrefslogtreecommitdiffstats
path: root/src/components/organisms/layout
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-06-07 17:44:17 +0200
committerGitHub <noreply@github.com>2022-06-07 17:44:17 +0200
commita640a5dee88f82398111142d6a4ca089bf0924cb (patch)
tree3e786789f8dfdb42d9e524171d2dfa5812c1fff0 /src/components/organisms/layout
parent22eeede34778d8e903a1999bfc6bc715c361d9ce (diff)
parentb1103a9554c5593c065466d1e289db2680cf2993 (diff)
chore: improve accessibility (#20)
Improve images, code blocks, cards and progress bar accessibility.
Diffstat (limited to 'src/components/organisms/layout')
-rw-r--r--src/components/organisms/layout/cards-list.tsx3
-rw-r--r--src/components/organisms/layout/posts-list.tsx6
-rw-r--r--src/components/organisms/layout/summary.tsx6
3 files changed, 11 insertions, 4 deletions
diff --git a/src/components/organisms/layout/cards-list.tsx b/src/components/organisms/layout/cards-list.tsx
index 1feddd0..dd05e59 100644
--- a/src/components/organisms/layout/cards-list.tsx
+++ b/src/components/organisms/layout/cards-list.tsx
@@ -55,9 +55,10 @@ const CardsList: FC<CardsListProps> = ({
value: (
<Card
key={id}
+ className={styles.card}
coverFit={coverFit}
+ id={id}
titleLevel={titleLevel}
- className={styles.card}
{...card}
/>
),
diff --git a/src/components/organisms/layout/posts-list.tsx b/src/components/organisms/layout/posts-list.tsx
index 24869fd..e3788c7 100644
--- a/src/components/organisms/layout/posts-list.tsx
+++ b/src/components/organisms/layout/posts-list.tsx
@@ -190,10 +190,12 @@ const PostsList: FC<PostsListProps> = ({
return (
<>
<ProgressBar
+ aria-label={progressInfo}
+ current={posts.length}
+ id="loaded-posts"
+ label={progressInfo}
min={1}
max={total}
- current={posts.length}
- info={progressInfo}
/>
{showLoadMoreBtn && (
<Button
diff --git a/src/components/organisms/layout/summary.tsx b/src/components/organisms/layout/summary.tsx
index 8807878..5d27862 100644
--- a/src/components/organisms/layout/summary.tsx
+++ b/src/components/organisms/layout/summary.tsx
@@ -115,7 +115,11 @@ const Summary: FC<SummaryProps> = ({
<ButtonLink target={url} className={styles['read-more']}>
<>
{readMore}
- <Arrow direction="right" className={styles.icon} />
+ <Arrow
+ aria-hidden={true}
+ className={styles.icon}
+ direction="right"
+ />
</>
</ButtonLink>
</div>