Skip to main content

Notifications

Community site session details
Power Apps - Building Power Apps
Answered

PowerApps Badge Color Not Working

Like (1) ShareShare
ReportReport
Posted on 27 Jul 2024 13:48:29 by 6
The colors yellow and orange do not show properly. I am using the switch function for the badge control. I inserted a rectangle and the color shows fine, just not the badge for some reason. The App does have the SharePoint theme on, but I'm not sure how to undo this/ fix it.
 
Any help would be greatly appreciated!
 
 
Categories:
  • Verified answer
    Akshansh-Sharma Profile Picture
    281 Super User 2025 Season 1 on 27 Jul 2024 at 17:31:22
    PowerApps Badge Color Not Working
    Hi, 
     
    Badge is a modern control and it won't take a color which doesn't satisfy the accessibility criteria of color and it will always generate a color pallate based on a base color which you provide and that's what's happening in your case i did a quick test on my end and the same thing happend with me as well but as a workaround you can implement something like this 
     
    1. Add a container on the screen and put your switch condition on the color property of your container
    2. Add the Badge control inside your container and keep your badge as Outline type only
    3. This way you will be able to provide your desired color inside your badge and it will look like this please refer the screenshot which i provided below
     
     
     
    Let me know how you get on 
     
     
    --------------------------------------------------------------------------------------------------------------------
    Please click Accept as solution if my post helped you solve your issue. If the content was useful in other ways, please consider giving it Thumbs Up 
     
    LinkedIn- https://www.linkedin.com/in/akshansharma/
     
     

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 42 Most Valuable Professional

#2
mmbr1606 Profile Picture

mmbr1606 41 Super User 2025 Season 1

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 36

Overall leaderboard