Skip to content
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

feat: adding vertical dots [STRY-301] #626

Merged
merged 15 commits into from May 14, 2024
Merged

feat: adding vertical dots [STRY-301] #626

merged 15 commits into from May 14, 2024

Conversation

Copy link

vercel bot commented May 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
wpds-ui-kit ✅ Ready (Inspect) Visit Preview May 13, 2024 8:29pm
wpds-ui-kit-storybook ✅ Ready (Inspect) Visit Preview May 13, 2024 8:29pm

Copy link

@tamstephanie tamstephanie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just two tiny suggestions, but otherwise, looks awesome!

packages/kit/src/pagination-dots/PaginationDots.tsx Outdated Show resolved Hide resolved
@@ -134,7 +169,7 @@ function configureDots(nPages: number, activeIndex: number, amount: number) {
// default: active dot has scale = 1, each dot previous/next's scale reduces by 25%
let scale = 1 - stepsFromActive / 4;
if (amount <= 5 && stepsFromActive > 1) {
// if there are 5 or less dots, make all dots at least 4px
// if there are 5 or fewer dots, make all dots at least 4px

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@val-l-hosler val-l-hosler merged commit 438a90b into main May 14, 2024
6 of 7 checks passed
@val-l-hosler val-l-hosler deleted the STRY-301-vert-dots branch May 14, 2024 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants