-
Notifications
You must be signed in to change notification settings - Fork 718
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(ColorPicker): ToolTip of ColorPickerSlider doesn't work properly #13912
Conversation
// ToolTip doesn't currently provide any way to re-run its placement logic if its placement target moves, | ||
// so toggling IsEnabled induces it to do that without incurring any visual glitches. | ||
toolTip.IsEnabled = false; | ||
toolTip.IsEnabled = true; |
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.
This code matches WinUI and shouldn't be changed. I believe @jeromelaban was already working on the proper fix.
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.
I fixed 2 issues( #13868 and #13865) in this PR. Which issue was @jeromelaban working on?
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.
@jeromelaban , @Youssef1313 .
No need to PR for issues #13868 and #13865?
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.
Indeed, we cannot change that code as the original behavior from winui needs to be kept and tooltip needs to get the behavior that ColorPickerSlider is depending on. I worked on this during last week's stream, see https://www.youtube.com/watch?v=8Txc13MMJQk, though I did not get to finish it.
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.
Thanks @jeromelaban. Are the any plans to finalize your work?
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.
@DierkDroth not at this time, but it can be reused to update this PR.
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.
Ah, thanks @jeromelaban for letting us know.
@jeromelaban @Youssef1313 Is there any chance to get this PR reviewed? I would be happy to test that fix as those issues manifest themselves in my UNO WASM app. Thanks in advance |
2234ae9
to
a152988
Compare
@jeromelaban @Youssef1313 |
a152988
to
1e44ad6
Compare
This PR isn't needed now because I can't reproduce the issue on the latest Uno. |
GitHub Issue (If applicable): closes #13868
PR Type
What kind of change does this PR introduce?
What is the current behavior?
What is the new behavior?
Copilot Summary
🤖 Generated by Copilot at 2234ae9
This pull request enhances the
ColorPicker
andColorPickerSlider
controls, fixes a bug with theSlider
thumb tooltip, and adds a new UI test and a new sample page for theColorPicker
. It also adds some null checks and flags to improve the stability and performance of theToolTip
andSlider
controls.PR Checklist
Please check if your PR fulfills the following requirements:
Screenshots Compare Test Run
results.Other information
Internal Issue (If applicable):