Skip to content

Commit 55376af

Browse files
Haider Alshammahaideralsh
authored andcommitted
fix: spacing issue with the pagination
1 parent 0c94dd3 commit 55376af

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/Pagination/Pagination.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function Pagination({
6161
};
6262

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

8282
if (page === SEPARATOR)
8383
return (
84-
<Text key={`sep${index}`} py="x1" mr="x2" fontSize="small" lineHeight="smallTextBase">
84+
<Text key={`sep${index}`} py="x1" fontSize="small" lineHeight="smallTextBase">
8585
{SEPARATOR}
8686
</Text>
8787
);

src/Pagination/PaginationButton.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ const PaginationButton = styled.button<{
2626
border: `1px solid ${currentPage ? theme.colors.darkBlue : theme.colors.lightGrey}`,
2727
color: disabled ? theme.colors.grey : theme.colors.black,
2828
minWidth: iconOnly ? theme.space.x4 : "auto",
29-
"&:not(:last-child)": {
30-
marginRight: theme.space.x2,
31-
},
3229
cursor: disabled ? "default" : "pointer",
3330
"&:hover": {
3431
background: getHoverBackground(currentPage, disabled, theme),

0 commit comments

Comments
 (0)