-
Notifications
You must be signed in to change notification settings - Fork 39
feat: pagination component [WE-84] #711
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Some failing validations but I know you are taking care of them |
} | ||
|
||
return pagesToShow; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It may be good to set some of these numbers that repeat, such as 5, to a constant. And would these values every change or will always show 1-5 pages?
css, | ||
density = "compact", | ||
icon = "right", | ||
variant = "secondary", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noticed that the StyledButton
that uses this variant
prop only uses secondary
, so this could be removed and update line 59 to variant="secondary"
and the eslint/ts comment issue will go away. Just like in the other component: PaginationNextPageOverflowButton`.
…t/wpds-ui-kit into WE-84-pagination-component
…ected buttons [WE-84]
What I did
https://arcpublishing.atlassian.net/browse/WE-84 -- Pagination Component
Build docs: https://wpds-docs-git-we-84-pagination-component.preview.now.washingtonpost.com/components/Pagination
Storybook: https://wpds-ui-kit-storybook-git-we-84-pagination-component.preview.now.washingtonpost.com/?path=/docs/pagination--docs
Compare against designs: