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

Added track width as optional props #34

Merged
merged 4 commits into from
Dec 1, 2023
Merged

Conversation

andreas-berg
Copy link
Contributor

Needed the ability to set the width of the circle, i.e. track width, via props.
Pls consider including this feature in the next version.

@mnkhouri
Copy link
Owner

Thanks for this, I'll take a look shortly!

Copy link
Owner

@mnkhouri mnkhouri left a comment

Choose a reason for hiding this comment

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

Looks good to me overall! Minor change requested, then I'll merge it and publish a new version

@@ -22,7 +22,8 @@
"postpublish": "PACKAGE_VERSION=$(echo 'const p = require(\"./package.json\"); process.stdout.write(p.version)' | node) && git tag v$PACKAGE_VERSION && git push --tags",
"test": "eslint src/** && prettier --check src/**",
"build": "rm -rf ./dist ./docs && prettier --write src/** docs-src/** && webpack && tsc",
"watch-docs": "webpack serve"
"watch-docs": "webpack serve",
"prepare": "npm run build"
Copy link
Owner

Choose a reason for hiding this comment

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

From reading the docs for prepare, I see that it runs on install and prepublish. Since there's already a prepublishOnly script that runs a build, this prepare will just add a build at install time.

However, I don't think consumers of this library generally need to run build at install time, since the built version should already be included (as part of the prepublishOnly during publishing the new version). What do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

prepare is a nice addition, doesn't hurt anyone

README.md Outdated Show resolved Hide resolved
@mnkhouri mnkhouri linked an issue Nov 29, 2023 that may be closed by this pull request
@mnkhouri
Copy link
Owner

mnkhouri commented Dec 1, 2023

Thanks for the contribution!

@mnkhouri mnkhouri merged commit f8a4502 into mnkhouri:master Dec 1, 2023
mnkhouri added a commit that referenced this pull request Dec 1, 2023
Feat: Added track width as optional props (#34)
Fix: fire `onControlFinished` for touch drags (#35)
@mnkhouri
Copy link
Owner

mnkhouri commented Dec 1, 2023

Published as v0.3.0 at https://www.npmjs.com/package/react-circular-slider-svg

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.

trackWidth as a prop
3 participants