-
Notifications
You must be signed in to change notification settings - Fork 32
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(Slider): add multiThumbBehavior property #1526
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit cbc15ce:
|
Gatsby Cloud Build ReportDNB Eufemia Portal 🎉 Your build was successful! See the Deploy preview here. Build Details🕐 Build time: 9m PerformanceLighthouse report
|
15c176f
to
fa7670e
Compare
This is great but should we allow thumbs to push each other when Screen.Recording.2022-08-25.at.09.29.45.mov |
yeah, we may add this as well. Do you have any property name recommendation? Or should it do so as default? It differs if the use-case I would say, so both can be interesting. Probably as a separate feature, or as an alternative:
|
fa7670e
to
2e5184d
Compare
What you think about this? |
Yeah, we can do that 👍 Regarding the push behavior – I see, material UI is recommending doing it in your app instead. But the code looks so terrible to have in your app code, just to get the push behavior 🤦♂ ️ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice feature 💯
If we think this will be used a lot, it could be beneficial to add an example to the docs, so that it will be easier to see/find out that we have this feature for devs.
Yea I agree better to have the logic within the component. |
2e5184d
to
294d54d
Compare
In addition to the new property; - Add a test + some more - Add type docs
294d54d
to
cbc15ce
Compare
# [9.30.0](v9.29.0...v9.30.0) (2022-08-29) ### Bug Fixes * **Slider:** fix reverse with min and max defiend ([#1533](#1533)) ([6c169b4](6c169b4)) * **Slider:** prevent onChange being called with same value ([#1528](#1528)) ([115b056](115b056)) * **Slider:** use numbers instead of css reverse when reversing slider ([#1532](#1532)) ([e2e83a0](e2e83a0)) * **Theme:** correct DNB Eiendom state colors mint-green-50 to pistachio ([#1527](#1527)) ([b7f532e](b7f532e)) * **withCamelCaseProps:** make exception for className ([#1534](#1534)) ([a0a0082](a0a0082)) ### Features * **Slider:** add multiThumbBehavior property ([#1526](#1526)) ([f835651](f835651))
🎉 This PR is included in version 9.30.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
In addition to the new property;
slider.swap.mov