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

Material theme doesn't show InfoBadge on NavigationViewItem #1395

Open
5 tasks
gevart opened this issue Apr 19, 2024 · 1 comment
Open
5 tasks

Material theme doesn't show InfoBadge on NavigationViewItem #1395

gevart opened this issue Apr 19, 2024 · 1 comment
Labels
kind/bug Something isn't working theme/material

Comments

@gevart
Copy link

gevart commented Apr 19, 2024

Current behavior

  1. MS WinUI 3 App with NavigationViewItem with InfoBadge shows the badge as expected (theme is Fluent of course).
  2. Uno WinUI Material head with NavigationViewItem with InfoBadge doesn't show the badge.
  3. Uno WinUI Material head with Button with InfoBadge (code from Uno Gallery) shows the badge as expected.

So it looks like the problem might lie specifically within Material implementation of NavigationViewItem's InfoBadge.

Expected behavior

Uno WinUI Material head with NavigationViewItem with InfoBadge should show the badge.

How to reproduce it (as minimally and precisely as possible)

This code shows the badge on MS WinUI and doesn't show it on Uno Material WinUI:

<NavigationViewItem Icon="Mail" Content="Inbox">
    <NavigationViewItem.InfoBadge>
        <InfoBadge Value="5"
            HorizontalAlignment="Right"
            VerticalAlignment="Top"
            Margin="5" />
    </NavigationViewItem.InfoBadge>
</NavigationViewItem>

Environment

InfoBadge within NavigationViewItem is supported starting from WindowsAppSDK 1.2, the issue reproduces on the latest WindowsAppSDK 1.5.

Nuget Package:

Package Version(s):

Affected platform(s):

I tested it on WinUI and WPF heads, other heads are probably affected too.

  • iOS
  • Android
  • WebAssembly
  • UWP
  • MacOS

Anything else we need to know?

@gevart gevart added the kind/bug Something isn't working label Apr 19, 2024
@kazo0
Copy link
Collaborator

kazo0 commented Apr 19, 2024

Thanks for the issue @gevart

We will investigate and prioritize this along with general InfoBadge support in Material going forward!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working theme/material
Projects
None yet
Development

No branches or pull requests

2 participants