Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/web/lib/components/PaginatedThemeSelector/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export const PaginatedThemeSelector = ({
});

const footerPager = pageCount > 1 && (
<div className="page-selector">
<div className="page-selector" role="navigation" aria-label="pagination">
<button
className={classNames("previous", { disabled: prevDisabled })}
disabled={prevDisabled}
Expand All @@ -92,7 +92,10 @@ export const PaginatedThemeSelector = ({
"current-page": idx === currentPage
})}
onClick={() => setCurrentPage(idx)}
title={`Page ${idx + 1}`}
title={`Page ${idx + 1} of ${pageCount}`}
aria-current={
currentPage ? "page" : "false"
}
/>
))}
<button
Expand Down
3 changes: 1 addition & 2 deletions src/web/lib/components/PaginatedThemeSelector/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
button.page {
&::before {
border-radius: 8px;
border: 2px solid var(--grey-40);
border: 2px solid var(--grey-50);
box-sizing: border-box;
content: "";
height: 10px;
Expand All @@ -59,7 +59,6 @@
background-position: center center;
background-repeat: no-repeat;
background-size: 10px 18px;
opacity: .7;
transition: opacity 125ms;

&:hover {
Expand Down