Skip to content

Commit

Permalink
feat(community-pagination): adding french accessibility text
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-bunce authored and theetrain committed Apr 17, 2019
1 parent 1032622 commit c578527
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/Pagination/Pagination.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class Pagination extends Component {
}

mapTabs = () => {
const goToText = this.props.language === 'french' ? 'Aller au panneau n°' : 'Go to panel number'
return this.props.children.map((item, i) => {
const index = i + 1
let { current } = this.state
Expand Down Expand Up @@ -64,7 +65,7 @@ class Pagination extends Component {
<button
value={index}
onClick={e => this.handleClick(e)}
aria-label={`Go to panel number ${index}`}
aria-label={`${goToText} ${index}`}
>
{index}
</button>
Expand Down

0 comments on commit c578527

Please sign in to comment.