From 85a7fe20f413f59a79ecb3e58d88b76d8ea3cfee Mon Sep 17 00:00:00 2001 From: Josh Bruce Date: Sat, 27 Jun 2020 12:49:57 -0500 Subject: [PATCH] Update Pagination.php --- src/UIKit/Elements/Compound/Pagination.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/UIKit/Elements/Compound/Pagination.php b/src/UIKit/Elements/Compound/Pagination.php index c8e56ef..c902dea 100644 --- a/src/UIKit/Elements/Compound/Pagination.php +++ b/src/UIKit/Elements/Compound/Pagination.php @@ -152,7 +152,7 @@ public function unfold(): string UIKit::listWith(... Shoop::array([$this->anchorFor(1), $this->anchorFor(2)]) ) - ); + )->attr("class pagination"); } @@ -182,12 +182,12 @@ public function unfold(): string $hasPrevious = $this->currentPage()->isGreaterThanUnfolded(1); $hasNext = $this->currentPage()->isLessThanUnfolded($this->totalPages()); - $navClass = "class pagination"; // both + $navClass = "class pagination next previous"; // both if (! $hasNext and $hasPrevious) { - $navClass = "class pagination-previous"; + $navClass = "class pagination previous"; } elseif ($hasNext and ! $hasPrevious) { - $navClass = "class pagination-next"; + $navClass = "class pagination next"; }