-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[Windows] Fix for FlyoutItem in overflow menu not fully interactable #27575
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
[Windows] Fix for FlyoutItem in overflow menu not fully interactable #27575
Conversation
@dotnet-policy-service agree company="Syncfusion, Inc." |
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.
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
Comments suppressed due to low confidence (1)
src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue23803.cs:17
- [nitpick] The test method name 'VerifyClickAroundOverflowMenuItem' could be more descriptive. Consider renaming it to 'VerifyOverflowMenuItemClickBehavior'.
public void VerifyClickAroundOverflowMenuItem()
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
@@ -110,7 +111,7 @@ public WBrush? Foreground | |||
|
|||
public WBrush? Background | |||
{ | |||
get => IsSelected ? SelectedBackground : UnselectedBackground; | |||
get => (IsSelected ? SelectedBackground : UnselectedBackground) ?? new SolidColorBrush(Microsoft.UI.Colors.Transparent); |
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.
Could you include a comment explaining why requires a default background. That context could be useful for future reviewers etc.
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.
The Background color is set to null since both SelectedBackground and UnselectedBackground return null. Adding a default transparent background ensures it is never null, preventing rendering inconsistencies.
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
/rebase |
89ecebd
to
1698fe0
Compare
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
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.
d9dc3ff
to
aba57e3
Compare
@jsuarezruiz I ran the issue locally and identified the cause of the test failure. The failure occurs because, before the fix, the mouse clicked on the right side of the tab item text, whereas after the fix, it clicks directly over the tab item text. This change in click behavior affects the appearance of the blue tab indicator. When clicking over the text, the indicator does not appear, but when clicking beside the text, it does. I also tested the behavior without the fix and observed that the indicator only appears when clicking outside the text. |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
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.
The test DynamicTabSectionVisibility has failed on Windows in more than 1 retry with the branch. That makes me think it might be related to the changes.
Could you review it?
@jsuarezruiz The failure in DynamicTabSectionVisibility seems to be related to PR #25550, rather than my changes. I have updated to the new CI image accordingly. |
/rebase |
c7033e0
to
d84623b
Compare
/azp run MAUI-UITests-public |
Azure Pipelines successfully started running 1 pipeline(s). |
…27575) * fixed shell items click issue * fix for shell items click issue * fix for flyoutitem in the overflow menu is not fully intractable * fix for flyoutitem in the overflow menu is not fully intractable * Update Issue6784.cs Removed test case fails on Windows * added new image * added new ci image
…27575) * fixed shell items click issue * fix for shell items click issue * fix for flyoutitem in the overflow menu is not fully intractable * fix for flyoutitem in the overflow menu is not fully intractable * Update Issue6784.cs Removed test case fails on Windows * added new image * added new ci image
Root cause:
Description of change:
Tested the behavior in the following platforms.
Issues Fixed
Fixes - #23803
Output
Screen.Recording.2025-01-27.190134.mp4
Screen.Recording.2025-01-27.184055.mp4