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

TopNavView OverFlow Items Incorrect Foreground Colour Fix #5619

Merged
merged 1 commit into from
Aug 11, 2021

Conversation

karkarl
Copy link
Contributor

@karkarl karkarl commented Aug 3, 2021

Description

Remove extra NavigationViewItemPresenter.Foreground setter from NavigationView.xaml.

Unsure why this was the causing TopNavView items to show up as different colours as it is revealed on resize, but I hypothesize that the ordering in which TextFillColorPrimaryBrush is being evaluated is causing issues. It is instead evaluating the System theme colour rather than the app theme colour.

Motivation and Context

Fixes #5559

@ghost ghost added the needs-triage Issue needs to be triaged by the area owners label Aug 3, 2021
@karkarl
Copy link
Contributor Author

karkarl commented Aug 3, 2021

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@beervoley beervoley added area-NavigationView NavView control team-Controls Issue for the Controls team labels Aug 3, 2021
@ranjeshj ranjeshj removed the needs-triage Issue needs to be triaged by the area owners label Aug 3, 2021
@@ -727,7 +727,6 @@
<VisualState x:Name="OnTopNavigationPrimary">
<VisualState.Setters>
<Setter Target="NavigationViewItemPresenter.Margin" Value="{ThemeResource TopNavigationViewItemMargin}"/>
<Setter Target="NavigationViewItemPresenter.Foreground" Value="{ThemeResource TopNavigationViewItemForeground}" />
Copy link
Contributor

@ranjeshj ranjeshj Aug 10, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So this was set from the style below as well ? I think this line might be overwriting the TemplateBinding below which probably caused it to not revert when getting out of this state.

@karkarl karkarl merged commit 4653903 into main Aug 11, 2021
@karkarl karkarl deleted the user/karenlai/TopNavViewForegroundColorFix branch August 11, 2021 00:20
@StephenLPeters StephenLPeters added the needs-cherrypicktorelease PR tagged for cherry-pick to the current release branch (but not yet picked) label Oct 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-NavigationView NavView control needs-cherrypicktorelease PR tagged for cherry-pick to the current release branch (but not yet picked) team-Controls Issue for the Controls team
Projects
None yet
4 participants