-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[Slider] change boolean logic to show thumb label #30761
Conversation
I made it so that , except when Before this, <Stack spacing={2} width={500}>
<Slider valueLabelDisplay="auto" min={0} max={100} />
<Slider valueLabelDisplay="auto" min={0} max={100} disableSwap />
<Slider valueLabelDisplay="auto" min={0} max={100} defaultValue={[20, 40]} />
<Slider valueLabelDisplay="auto" min={0} max={100} defaultValue={[20, 40]} disableSwap />
</Stack> Before: before.movAfter: after.mov |
👋 The migration PR has been merged. Please follow these steps to make sure that the contents are all updated. (Sorry for the inconvenience)
If you are struggle with the steps above, feel free to tag @siriwatknp |
Now passing all tests! |
Hi sorry to bother you but since you said you could help with the issue I'm mentioning you. Is there anything I can do to help move this forward? Thanks in advance |
@NPetz The change looks great to me. Would you be able to add a test to make sure that no one breaks this functionality in the future? |
@NPetz I apologize for the delay. The CI is passing so I guess the prettier & lint conflict was resolved. The last step would be adding tests for the following scenarios:
|
Thank you both! I will go ahead and add a test then. Thanks |
…slider-disableSwap-tooltip-hover
@NPetz it's been a while, are you still interested in continuing the effort? Looks like we are missing test for the new behavior :) |
It has been a while! I'll try to add the tests before the end of the month! |
Hi @NPetz, just a friendly reminder about this PR. Would you still like to contribute? |
Since there are no updates, I am closing this PR. |
closes #30753
As per #30753 I changed the boolean logic to display a thumb label value on hover so that it displays even when
disableSwap
flag is set.As per original requirements (#25547 (review)), I also made sure that only one thumb's value label is displayed at any time (except if
valueLabelDisplay
is set toon
).This last behavior isn't present when
disableSwap
is not set though. Should It be?P.S.
yarn lint
andyarn prettier
gave me conflicting formatting so sorry in advance if the formatting is wrong