Make PointerOver to have higher priority than Focused state#19812
Make PointerOver to have higher priority than Focused state#19812MartyIX wants to merge 4 commits intodotnet:mainfrom
PointerOver to have higher priority than Focused state#19812Conversation
|
Hey there @MartyIX! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
ebc8714 to
149cf08
Compare
|
@PureWeen Any feedback please? |
|
@Redth Any feedback please? |
|
@mattleibow Any feedback please? |
149cf08 to
008627e
Compare
|
@rmarinho Any feedback please? |
Foda
left a comment
There was a problem hiding this comment.
LGTM -- please revert the main page changes before merging.
008627e to
326319c
Compare
|
Rebased and added a revert commit (so it stays in the GitHub history) |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
mattleibow
left a comment
There was a problem hiding this comment.
Needs UI tests. The sandbox sample you had was good.
326319c to
70c2dee
Compare
I think that @PureWeen was against the approach of this PR. I did try to add a UI test but I'm unable to finish it because I'm not sure how to make the first button to be focused on Windows. @jsuarezruiz Would you know please? |
@mattleibow usually with windows don't they add new states that are suffixed with PointerOver? Are we worried about this being a breaking change or unexpected? If I remember correctly, I don't think WinUI, for example, ever uses Focus for a VSM |
|
i got some changes coming. I was playing with things and will update with more info once I confirm things. |
|
I think this PR and description actually points out the issue here: #27477 but the TL;DR is that the focus states are supposed to be in a separate group so that a button can both be focused AND be pointer over. Thougts? |
I just wonder what the precedence rules are for these two style groups. I mean I want "pointer-over" state to have higher precedence than "focused" state. Does it depend on the order here https://github.com/dotnet/maui/pull/27477/files#diff-f9f36395cbe8fbe5db0fb42d9eeda70e070ed5ced099553747d1236d4f05117fR16-R54 ? |
|
I just copied the WinUI code, but that does not mean that it is the only way. Since the code I have just typed now is totally different to anything we have, let's move the discussion to #27477 |
|
Replaced by #27477 |
Description of Change
This is just an idea how to fix #19752. I'm very much unsure whether:
I figured that creating a PR is the easiest way to demonstrate what I mean.
mainbehavior:btw: #11840 was merged and it changed
VisualElementfile like this: https://github.com/dotnet/maui/pull/11840/files#diff-2863605ee57ca6009796676e9d6d910295c5e1866866797d219268c93c79491b. Maybe @Redth can chime in with some feedback.Issues Fixed
Fixes #19752