Skip to content

Commit

Permalink
fix: removed pager-link data-element from prev item button in Paginat…
Browse files Browse the repository at this point in the history
…ion (#420)

* fix: removed pager-link data-element from prev item button in Pagination

* chore: removed console.log

* chore: code rework
  • Loading branch information
sabrina-bongiovanni authored Nov 28, 2023
1 parent 52da0c7 commit 5812546
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/ItaliaTheme/Pagination/PaginationItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ class PaginationItem extends Component {
onClick={this.handleClick}
onKeyDown={this.handleKeyDown}
aria-current={active ? 'page' : null}
data-element={isServiceLink ? 'pager-link' : null}
data-element={
isServiceLink && type !== 'prevItem' ? 'pager-link' : null
}
>
{type === 'prevItem' && (
<>
Expand Down

0 comments on commit 5812546

Please sign in to comment.