Skip to content

Commit

Permalink
fix: spacing issue with the pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
haideralsh committed Jan 6, 2025
1 parent 0c94dd3 commit df7d45d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/Pagination/Pagination.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function Pagination({
};

return (
<Flex as="nav" aria-label={ariaLabel || t("pagination navigation")} alignItems="center" {...restProps}>
<Flex as="nav" gap="x2" aria-label={ariaLabel || t("pagination navigation")} alignItems="center" {...restProps}>
<PreviousButton
disabled={currentPage === 1}
onClick={() => {
Expand All @@ -81,7 +81,7 @@ function Pagination({

if (page === SEPARATOR)
return (
<Text key={`sep${index}`} py="x1" mr="x2" fontSize="small" lineHeight="smallTextBase">
<Text key={`sep${index}`} py="x1" fontSize="small" lineHeight="smallTextBase">
{SEPARATOR}
</Text>
);
Expand Down
3 changes: 0 additions & 3 deletions src/Pagination/PaginationButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ const PaginationButton = styled.button<{
border: `1px solid ${currentPage ? theme.colors.darkBlue : theme.colors.lightGrey}`,
color: disabled ? theme.colors.grey : theme.colors.black,
minWidth: iconOnly ? theme.space.x4 : "auto",
"&:not(:last-child)": {
marginRight: theme.space.x2,
},
cursor: disabled ? "default" : "pointer",
"&:hover": {
background: getHoverBackground(currentPage, disabled, theme),
Expand Down

0 comments on commit df7d45d

Please sign in to comment.