diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-01-14 16:28:14 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-01-14 16:28:14 +0100 |
| commit | 03c5ba6791dcf7e097f14246af61d107cdadaeff (patch) | |
| tree | e34a947547b0eef65b29b7301560d24fed03468d /src/components/PostsList/PostsList.module.scss | |
| parent | d47b859b218679cc99fa95e64b2308c378dc93fe (diff) | |
chore: improve load more button accessibility
On click, the focus should be moved to the last post in the list
instead of keeping it on load more button. It helps to keep a
consistent navigation for keyboard users for example.
Diffstat (limited to 'src/components/PostsList/PostsList.module.scss')
| -rw-r--r-- | src/components/PostsList/PostsList.module.scss | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/components/PostsList/PostsList.module.scss b/src/components/PostsList/PostsList.module.scss index c0f8062..6c3f93e 100644 --- a/src/components/PostsList/PostsList.module.scss +++ b/src/components/PostsList/PostsList.module.scss @@ -33,9 +33,12 @@ } li.item { - margin: 0 0 var(--spacing-md) 0; border-bottom: fun.convert-px(1) solid var(--color-border-light); + &:not(:last-of-type) { + margin: 0 0 var(--spacing-md) 0; + } + &:first-of-type { margin-top: var(--spacing-sm); |
