diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-02-11 17:56:27 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-02-11 17:56:27 +0100 |
| commit | 8647197a05490e2c10106a021cf6760bdabb5b2a (patch) | |
| tree | 5fb56fad1c0f585ac063a8f6390e68586e3e6084 /src/components/PostsList/PostsList.tsx | |
| parent | c69c107de84aa3b2cdbf0ed087d0314f22d30b18 (diff) | |
chore: improve accessibility
Diffstat (limited to 'src/components/PostsList/PostsList.tsx')
| -rw-r--r-- | src/components/PostsList/PostsList.tsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/components/PostsList/PostsList.tsx b/src/components/PostsList/PostsList.tsx index 16deee3..b57630e 100644 --- a/src/components/PostsList/PostsList.tsx +++ b/src/components/PostsList/PostsList.tsx @@ -50,7 +50,11 @@ const PostsList = ( <li className={styles.item}> <PostPreview post={post} titleLevel={titleLevel} /> </li> - {isLastPost && <span ref={ref} tabIndex={-1} />} + {isLastPost && ( + <li className={styles.item}> + <span ref={ref} tabIndex={-1} /> + </li> + )} </Fragment> ); })} |
