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

fix(Slider): fixed customSteps spacing to respect min/max #6231

Merged
merged 2 commits into from
Sep 1, 2021

Conversation

evwilkin
Copy link
Member

What: Closes #5833
Related issues: #5707 & #5893

This PR fixes the spacing of customSteps by respecting the min/max values when calculating the value prop for each SliderStep.

This PR also fixes customSteps allowing higher than max value by accurately calculating customStepPercentage based on the number of custom steps.

@patternfly-build
Copy link
Contributor

patternfly-build commented Aug 26, 2021

PF4 preview: https://patternfly-react-pr-6231.surge.sh

@tlabaj tlabaj merged commit ed777b2 into patternfly:main Sep 1, 2021
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.

Slider: max and customSteps dont play well together
4 participants