add property to override badge style in navigation bar#1977
add property to override badge style in navigation bar#1977kumarmohit5189 wants to merge 10 commits intomicrosoft:mainfrom
Conversation
|
Do we really want to expose this? Good to add an example to the Demo app and that should help with Before/After screenshots to justify why this is a desirable experience |
We need this to make Badgelabel style to designed format, without making any change in navigationBar. With primary nav style text and badge is of white color. Please refer attached screenshot. |
|
Additional thought: the UI changes in your "before" and "after" images, but there are no new changes in the Demo app. If the default behavior of the button has changed, that is a major design change and can't be submitted. Otherwise, we should expose a toggle in the navigation controller demo to replicate the change you illustrated. |
I wanted to close on #1977 (comment), I will update UI accordingly. Can you please let me know your feedback for my comment? How we should handle this case? |
…thub.com/kumarmohit5189/fluentui-apple into user/kumarmohit/fluent_bar_button_change
@mischreiber here is UI changes demo, please have a look. Screen.Recording.2024-03-01.at.9.54.49.AM.mov |
Do we have design input on this - is it really intended that both are possible? Or is one of those the actual design and the other is just a bug? |
@anandrajeswaran This is an addition to support unread dot like tab bar item. Generally unread dot should be Red. I raised another PR #1974 for this to keep red dot as separate. But came with suggestion to leverage #1974 (review) badgeLabel itself. Its just we need to expose property. |
Let's chat offline with designers as well - presumably there was a reason for this existing design to not be red in this case. |




Platforms Impacted
Description of changes
For
NavigationBarcurrently we don't have a way in case we want to change background color forBadgeLabel. It is picking usingNavigationBartheme defined. As part of this change, added capability to overrideBadgeLableStylefor a particular screen, If this override happen thenBadgeLabelwill be using updated style for its UIBarButtonItems else it will followNavigationBarstyle to set background.Binary change
Total increase: 5,360 bytes
Total decrease: 0 bytes
Full breakdown
Validated this change by manual testing with different mode like dark mode / light mode etc. Since this change is using existing UI and flows, so is safe fix.
Visual Verification
|
|

|
Pull request checklist
This PR has considered:
Microsoft Reviewers: Open in CodeFlow