Skip to content

Commit

Permalink
feat(www): add aria attributes to pagination (#16132)
Browse files Browse the repository at this point in the history
  • Loading branch information
NickyMeuleman authored and sidharthachatterjee committed Aug 8, 2019
1 parent 9fecbe7 commit fdd9963
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions www/src/components/pagination/index.js
Expand Up @@ -78,6 +78,7 @@ class Pagination extends React.Component {
>
<span>Showing page &nbsp;</span>
<select
aria-label="Pagination Dropdown"
value={currentPage === 1 ? `` : currentPage.toString()}
onChange={this.changePage}
css={{
Expand All @@ -92,6 +93,8 @@ class Pagination extends React.Component {
<option
value={`${i === 0 ? `` : i + 1}`}
key={`pagination-number${i + 1}`}
aria-label={`Goto Page ${i + 1}`}
aria-current={currentPage === i + 1}
>
{i + 1}
</option>
Expand Down

0 comments on commit fdd9963

Please sign in to comment.