Skip to content
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

Fixing AppBarButton visual state overlap #6933

Merged
merged 4 commits into from
Apr 5, 2022

Conversation

llongley
Copy link
Member

@llongley llongley commented Apr 5, 2022

Following this change, we ran into the issue that we now have two different visual state groups targeting the same property (SubItemChevron.Margin), which can cause problems in that one can pave over the other. I've fixed things by duplicating the SubItemChevron so the states for buttons in the primary and secondary items can be managed separately from each other, and toggled visibility of the two based on where the button is located.

Also added an automated API test that reproduces the issue without the fix.

@ghost ghost added the needs-triage Issue needs to be triaged by the area owners label Apr 5, 2022
@ranjeshj ranjeshj requested a review from RBrid April 5, 2022 16:31
@RBrid
Copy link
Contributor

RBrid commented Apr 5, 2022

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ranjeshj ranjeshj requested a review from kmahone April 5, 2022 16:58
@llongley llongley added area-Commanding AppBar, UICommand, MVVM, etc team-Controls Issue for the Controls team and removed needs-triage Issue needs to be triaged by the area owners labels Apr 5, 2022
@llongley
Copy link
Member Author

llongley commented Apr 5, 2022

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@llongley llongley merged commit 3867eb0 into main Apr 5, 2022
@llongley llongley deleted the user/llongley/FixAppBarButtonChevron branch April 5, 2022 23:57
kmahone pushed a commit that referenced this pull request Apr 6, 2022
Following 664933b we ran into the issue that we now have two different visual state groups targeting the same property (SubItemChevron.Margin), which can cause problems in that one can pave over the other.  I've fixed things by duplicating the SubItemChevron so the states for buttons in the primary and secondary items can be managed separately from each other, and toggled visibility of the two based on where the button is located.

Also added an automated API test that reproduces the issue without the fix.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Commanding AppBar, UICommand, MVVM, etc team-Controls Issue for the Controls team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants