-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Removing pageSize from sliderProps #2917
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
Conversation
also forcing pageSize to be a multiple of step
Build successful! 🎉 |
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.
Works well
Build successful! 🎉 |
Build successful! 🎉 |
Build successful! 🎉 |
Build successful! 🎉 |
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.
ok, looks good again :) thanks for checking more on that math
#2917 removes the pageSize prop from useSliderState so we need to manually override the page size on pageup pagedown
memoizing step calc in useSliderState as well. Exposing pageSize and step from useColorSliderState allows us to remove extraneous useKeyboard from useColorSlider that was previously needed for pageUp/Down handling
Build successful! 🎉 |
Build successful! 🎉 |
Build successful! 🎉 |
Build successful! 🎉 |
For release audit
Also forcing pageSize to be a multiple of step
✅ Pull Request Checklist:
📝 Test Instructions:
Unit test should cover the behavior
The slider "step" story should also display a page step of 10
The slider "minMax" story should display a page step of 4
🧢 Your Project:
RSP