Skip to content

Commit

Permalink
Merge pull request #10 from helsingborg-stad/fix/better-label-for-pag…
Browse files Browse the repository at this point in the history
…e-navigation

fix: better label for pagination page navigation
  • Loading branch information
sebastianthulin authored May 3, 2024
2 parents d5b6682 + 4265f69 commit c2888cb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/components/Pagination/Pagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ class Pagination extends Component {
prev: PropTypes.func.isRequired,
goToPage: PropTypes.func.isRequired,
langPrev: PropTypes.string,
langNext: PropTypes.string
langNext: PropTypes.string,
langGoToPage: PropTypes.string
};

pageList() {
Expand Down Expand Up @@ -49,7 +50,8 @@ class Pagination extends Component {
prev,
goToPage,
langNext,
langPrev
langPrev,
langGoToPage
} = this.props;

const pageList = this.pageList();
Expand Down Expand Up @@ -104,7 +106,7 @@ class Pagination extends Component {
className="c-pagination__link"
size="small"
>
{page}
<span className="u-sr__only">{langGoToPage ?? "Go to page: "} </span>{page}
</Button>
</li>
))}
Expand Down

0 comments on commit c2888cb

Please sign in to comment.