Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

Commit

Permalink
fix(pagination): add page class for "page" item (#1129)
Browse files Browse the repository at this point in the history
* add page class for "page" item

* add ais-Pagination-item--page class to Pagination snapshot
  • Loading branch information
ymc-sise authored and Haroenv committed Jun 28, 2022
1 parent 3b8b887 commit afacf8b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 21 deletions.
1 change: 1 addition & 0 deletions src/components/Pagination.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
<li
:class="{
[suit('item')]: true,
[suit('item', 'page')]: true,
[suit('item', 'selected')]: state.currentRefinement === page
}"
v-for="page in state.pages"
Expand Down
42 changes: 21 additions & 21 deletions src/components/__tests__/__snapshots__/Pagination.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -19,49 +19,49 @@ exports[`renders correctly another page 1`] = `
</a>
</li>
<li class="ais-Pagination-item">
<li class="ais-Pagination-item ais-Pagination-item--page">
<a class="ais-Pagination-link"
href="#"
>
4
</a>
</li>
<li class="ais-Pagination-item">
<li class="ais-Pagination-item ais-Pagination-item--page">
<a class="ais-Pagination-link"
href="#"
>
5
</a>
</li>
<li class="ais-Pagination-item">
<li class="ais-Pagination-item ais-Pagination-item--page">
<a class="ais-Pagination-link"
href="#"
>
6
</a>
</li>
<li class="ais-Pagination-item ais-Pagination-item--selected">
<li class="ais-Pagination-item ais-Pagination-item--page ais-Pagination-item--selected">
<a class="ais-Pagination-link"
href="#"
>
7
</a>
</li>
<li class="ais-Pagination-item">
<li class="ais-Pagination-item ais-Pagination-item--page">
<a class="ais-Pagination-link"
href="#"
>
8
</a>
</li>
<li class="ais-Pagination-item">
<li class="ais-Pagination-item ais-Pagination-item--page">
<a class="ais-Pagination-link"
href="#"
>
9
</a>
</li>
<li class="ais-Pagination-item">
<li class="ais-Pagination-item ais-Pagination-item--page">
<a class="ais-Pagination-link"
href="#"
>
Expand Down Expand Up @@ -105,49 +105,49 @@ exports[`renders correctly first page 1`] = `
</span>
</li>
<li class="ais-Pagination-item ais-Pagination-item--selected">
<li class="ais-Pagination-item ais-Pagination-item--page ais-Pagination-item--selected">
<a class="ais-Pagination-link"
href="#"
>
1
</a>
</li>
<li class="ais-Pagination-item">
<li class="ais-Pagination-item ais-Pagination-item--page">
<a class="ais-Pagination-link"
href="#"
>
2
</a>
</li>
<li class="ais-Pagination-item">
<li class="ais-Pagination-item ais-Pagination-item--page">
<a class="ais-Pagination-link"
href="#"
>
3
</a>
</li>
<li class="ais-Pagination-item">
<li class="ais-Pagination-item ais-Pagination-item--page">
<a class="ais-Pagination-link"
href="#"
>
4
</a>
</li>
<li class="ais-Pagination-item">
<li class="ais-Pagination-item ais-Pagination-item--page">
<a class="ais-Pagination-link"
href="#"
>
5
</a>
</li>
<li class="ais-Pagination-item">
<li class="ais-Pagination-item ais-Pagination-item--page">
<a class="ais-Pagination-link"
href="#"
>
6
</a>
</li>
<li class="ais-Pagination-item">
<li class="ais-Pagination-item ais-Pagination-item--page">
<a class="ais-Pagination-link"
href="#"
>
Expand Down Expand Up @@ -193,49 +193,49 @@ exports[`renders correctly last page 1`] = `
</a>
</li>
<li class="ais-Pagination-item">
<li class="ais-Pagination-item ais-Pagination-item--page">
<a class="ais-Pagination-link"
href="#"
>
4
</a>
</li>
<li class="ais-Pagination-item">
<li class="ais-Pagination-item ais-Pagination-item--page">
<a class="ais-Pagination-link"
href="#"
>
5
</a>
</li>
<li class="ais-Pagination-item">
<li class="ais-Pagination-item ais-Pagination-item--page">
<a class="ais-Pagination-link"
href="#"
>
6
</a>
</li>
<li class="ais-Pagination-item">
<li class="ais-Pagination-item ais-Pagination-item--page">
<a class="ais-Pagination-link"
href="#"
>
7
</a>
</li>
<li class="ais-Pagination-item">
<li class="ais-Pagination-item ais-Pagination-item--page">
<a class="ais-Pagination-link"
href="#"
>
8
</a>
</li>
<li class="ais-Pagination-item">
<li class="ais-Pagination-item ais-Pagination-item--page">
<a class="ais-Pagination-link"
href="#"
>
9
</a>
</li>
<li class="ais-Pagination-item ais-Pagination-item--selected">
<li class="ais-Pagination-item ais-Pagination-item--page ais-Pagination-item--selected">
<a class="ais-Pagination-link"
href="#"
>
Expand Down

0 comments on commit afacf8b

Please sign in to comment.