Skip to content

Commit

Permalink
fix: rewrap pagination item (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
NikitaCG authored Apr 24, 2023
1 parent ff2c014 commit a3a56b2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
2 changes: 2 additions & 0 deletions src/components/Paginator/Paginator.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ $itemDimensions: 44px;

&__link {
text-decoration: none;
pointer-events: none;
color: var(--yc-color-text-primary);
}

&__item {
Expand Down
24 changes: 12 additions & 12 deletions src/components/Paginator/components/PaginatorItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,20 @@ export const PaginatorItem = ({
const navigationLink = `${urlPath || ''}?${navTag}`;

return (
<a
href={navigationLink}
className={b('link', mods)}
onClick={(event) => event.preventDefault()}
<Button
view="flat"
size="xl"
className={b('item', mods)}
onClick={() => onClick?.(itemKey)}
loading={loading && Boolean(mods.active)}
>
<Button
view="flat"
size="xl"
className={b('item', mods)}
onClick={() => onClick?.(itemKey)}
loading={loading && Boolean(mods.active)}
<a
href={navigationLink}
className={b('link')}
onClick={(event) => event.preventDefault()}
>
{content}
</Button>
</a>
</a>
</Button>
);
};

0 comments on commit a3a56b2

Please sign in to comment.