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(uikit): Accept float values for Slider #4

Merged
merged 1 commit into from
Mar 17, 2021

Conversation

hachiojidev
Copy link
Contributor

  • Refactored progress to remove excess class names

<BarProgress
isMax={isMax}
progress={progressPercentage}
style={{ width: isMax ? "calc(100% - 16px)" : `${progressPercentage}%` }}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Using inline styles so it doesn't generate a class for each progress tick.


return (
<SliderContainer {...props}>
<Box position="relative" height="48px" {...props}>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

SliderContainer was not needed

- Refactored progress to remove excess class names
@hachiojidev hachiojidev merged commit 018d7e5 into master Mar 17, 2021
@hachiojidev hachiojidev deleted the uikit/slider-fixes branch March 17, 2021 02:30
ChefHutch pushed a commit to ChefHutch/pancake-toolkit that referenced this pull request Mar 18, 2021
- Refactored progress to remove excess class names
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.

2 participants