Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
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:
  • LA-22072215-0 Profile Picture
    6 on 29 Jul 2024 at 14:22:30
    PowerApps Badge Color Not Working
    Adding the badge within a container (in my gallery) helped. I also was able to keep the badge filled: the colors still showed up. Thank you!
  • 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/
     
     
  • Kalel_Lucas Profile Picture
    165 on 27 Jul 2024 at 14:58:24
    PowerApps Badge Color Not Working
    Hello LA-22072215-0,
     
    One question, using the RGBA value for the Yellow color (255,255,0,1) also returns the same issue with the color? The other colors don't have the same issue, I assume?
     
    Kind regards,
    Kalel

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

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
MS.Ragavendar Profile Picture

MS.Ragavendar 32

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 19 Super User 2025 Season 1

#3
WarrenBelz Profile Picture

WarrenBelz 18 Most Valuable Professional

Overall leaderboard
Loading started