-
-
Notifications
You must be signed in to change notification settings - Fork 17
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: add clipItemOne
prop
#137
Conversation
Someone is attempting to deploy a commit to a Personal Account owned by @nerdyman on Vercel. @nerdyman first needs to authorize it. |
Awesome, thanks for this @zoltan-mihalyi! I'll try it out and let you know if it's good to go. Did you run into a specific error with storybook? Others have had problems spinning it up before so I may have missed something in the contrib guide. |
On windows, the But after that i got an error: |
After removing
I feel like im unable to start the repo. Could you fix the PR? |
@zoltan-mihalyi Ah that's bug in the Storybook test runner, I just had to add a workaround in the CI for it too. If you merge the latest Locally, this should fix things: pnpm dlx [email protected] install --with-deps chromium For the I've updated the contrib docs to recommend using WSL on Windows. The This flow should work: # In one terminal run this:
pnpm --filter "react-compare-slider" dev
# In a separate terminal run this:
pnpm --filter "@this/storybook" dev I'm looking at adding a single |
@nerdyman I'm sorry, I ran into many problems using wsl:
I'm sorry but It seems I'm not able to finish this PR myself. Thanks for your understanding. |
@zoltan-mihalyi no worries, thanks for your work on this. The code looks good to me so I'll do some testing then we should be able to get this merged. I'll set up a VM to try to get the repo working on Windows too and update the contrib guide with what I find. |
@nerdyman Thanks a lot! Thinking through this feature: I think there should be a three-way switch instead of a boolean (clipItemOne) or instead of two booleans (clipItemOne and clipItemTwo). Because it is invalid to disable clipping for both. For example: |
@zoltan-mihalyi yeah cool that makes sense to me. I'll get this reviewed and tweak the components so it can do any of the three. |
@zoltan-mihalyi I've merged this into the Thanks for your work on this! |
Added clipItemOne prop, which enables clipping on itemOne.
Possible considerations:
I could'nt start the project and storybook on my windows machine. If it is easier for you, feel free to cherry pick and edit this code instead of accepting the PR.