Skip to content

Commit

Permalink
pagination updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jake-figma committed Jun 14, 2024
1 parent a0be236 commit bf27a90
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/ui/Pagination/Pagination.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import clsx from "clsx";
import { useMediaQuery } from "hooks";
import { IconArrowLeft, IconArrowRight } from "icons";
import type React from "react";
import { Button } from "ui";
Expand Down Expand Up @@ -53,7 +54,8 @@ export function PaginationNext({
}

export function PaginationList({ children }: { children: React.ReactNode }) {
return <span className="pagination-list">{children}</span>;
const { isTabletUp } = useMediaQuery();
return isTabletUp && <span className="pagination-list">{children}</span>;
}

export function PaginationPage({
Expand Down
2 changes: 1 addition & 1 deletion src/ui/Pagination/pagination.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@

.pagination-list {
align-items: center;
display: var(--sds-responsive-display-none-to-flex);
display: flex;
gap: var(--sds-size-space-200);
}

0 comments on commit bf27a90

Please sign in to comment.