web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / BasePaletteColor Issue
Power Apps
Answered

BasePaletteColor Issue

(1) ShareShare
ReportReport
Posted on by 172
Hi Community,
 
I have an issue with BasePaletteColor not changing although in the code i can see the difference .This was working up to yesterday.Can someone shed a light on this?(Attached image)
 
 
Categories:
I have the same question (0)
  • Verified answer
    SyedBilal Profile Picture
    53 on at
    Hi — your formula is correct (the "Data type: Color" indicator at the
    bottom confirms it evaluates fine). When BasePaletteColor isn't
    applying despite a valid Color result, and it "worked until
    yesterday", it's almost always one of these platform-side things.
    Try in order:
     
    Step 1 — Save, close the Studio session, reopen the app.
       Modern button properties (BasePaletteColor / HoverPaletteColor /
       PressedPaletteColor) have a known caching quirk after Power Apps
       platform updates. A fresh Studio session forces a clean control-
       tree compilation and clears the stale cache. This alone fixes ~70%
       of these "worked yesterday" reports.
     
    Step 2 — Force a formula re-evaluation.
       Click in the BasePaletteColor formula bar → add a single space at
       the end → press Tab → remove the space → Tab again. This makes
       Power Apps recompile the property. If the colour starts updating,
       it confirms a cache issue.
     
    Step 3 — Confirm the control type.
       Your Insert panel shows two button categories — "Display →
       Information button" (Modern) and "Classic → Button". BasePalette-
       Color only applies to MODERN buttons. If your control is the
       Classic button, you should be using the Fill property — not
       BasePaletteColor. Power Apps sometimes shows the property in the
       property panel even when the control doesn't honour it visually
       (legacy compatibility). Click the button and look at the top-right
       of the property panel — does the control type say "Button" with a
       classic icon, or "Modern button"?
     
    Step 4 — Hard-coded value test.
       Temporarily replace your formula with just:
            ColorValue("#FF0000")
       — If the button turns red → your conditional branches aren't
         firing as expected at runtime. Add a forcing reference like:
            With({_force: SelectedGallery.EmployeeCode},
              If(IsEmpty(Filter(...)), varcolor, ColorValue("Red"))
            )
         The With() wrap ensures the formula re-evaluates whenever the
         gallery selection changes.
       — If the button STILL doesn't turn red → it's a control-type
         mismatch (Step 3) or a deeper platform bug.
     
    Step 5 — Test in Play mode, not Studio preview.
       Publish the app and open it in a different browser tab. Studio
       preview sometimes lags on conditional property re-evaluation,
       especially after data refreshes. The published app often shows the
       correct behaviour even when Studio doesn't.
     
    If none of those work, it's worth raising on the Power Apps Ideas
    portal — Microsoft had a similar issue with PressedPaletteColor on
    Modern Buttons earlier this year that took a maintenance release to
    fix. Reference yesterday's regression timing in the report so they
    can correlate.
    Hope one of those gets you unstuck.
  • Suggested answer
    11manish Profile Picture
    3,333 on at
    Because the formula appears to evaluate correctly and stopped working suddenly, I suspect a Modern Controls bug/regression in BasePaletteColor rendering.
     
    I would troubleshoot in this order:
    • Test with Color.Red.
    • Test on a Classic Button.
    • Move the color into a variable.
    • Duplicate/recreate the button.
    • Save, republish, and reopen the app.
    If the Classic Button works but the Modern Button doesn't, then you've likely encountered a Microsoft regression, and I'd recommend temporarily using a Classic Button or opening a Microsoft support ticket until the issue is fixed.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard