Skip to content

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

Merged
tlabaj merged 2 commits into
patternfly:mainfrom
evwilkin:fix/5833-slider-max-customsteps
Sep 1, 2021
Merged

fix(Slider): fixed customSteps spacing to respect min/max#6231
tlabaj merged 2 commits into
patternfly:mainfrom
evwilkin:fix/5833-slider-max-customsteps

Conversation

@evwilkin
Copy link
Copy Markdown
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
Copy Markdown
Collaborator

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