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 / How to highlight label...
Power Apps
Answered

How to highlight label and icon in a gallery when selected

(0) ShareShare
ReportReport
Posted on by 10

Hi i'm new to this and have a component for navigation using gallery, and i want to highlight only selected label and icon part when respective screens are opened.

Shubham_Yadav_0-1669719874695.png

Any help will be thankfull as I'm new to this.

Categories:
  • MVP-Phipps Profile Picture
    3,521 Super User 2024 Season 1 on at

    Put an IF statement in border or fill colour. 

     

    Please Accept as Solution if it solves your question. Or just give it a Thumbs Up if it is helpful because this can help others.

    LinkedIn: https://www.linkedin.com/in/charlie-phipps-%F0%9F%91%A8%E2%80%8D%F0%9F%92%BB-91338715b/
    YouTube: https://www.youtube.com/channel/UChmFBGU1YKIU91sNMQ7buGg
    Twitter: https://twitter.com/phipps0218

  • Shubham_Yadav Profile Picture
    10 on at

    @phipps0218 , thanks for reply but using fill color complete cell color is getting changed and border color is also not working. Any other suggestions or what should be condition which i have to use.

  • MVP-Phipps Profile Picture
    3,521 Super User 2024 Season 1 on at

    What forumla did you write in your border colour?

  • Shubham_Yadav Profile Picture
    10 on at

    @phipps0218 , thanks for reply, my condition might be wrong 

    If(ThisItem.IsSelected= true,Red,DimGrey)

    Shubham_Yadav_0-1669807417635.png

    also i'm passing values from tables as below

    Table(
    {Value: "Support",Screen: App.ActiveScreen,Icon: Support},
    {Value: "Settings",Screen: App.ActiveScreen,Icon: Settings}

    )

  • mdatson Profile Picture
    41 on at

    In the colour property of your icon and label use the following (edit for your app)

    If(App.ActiveScreen = Support, RGBA(255, 0, 0, 1), RGBA(0, 0, 0, 1))

    This will set the colour of the text and icon to red is the support screen is active. if a different screen is active the text and icon will be black.

     

    If this solves your issue make sure to mark as accepted solution.

  • mdatson Profile Picture
    41 on at

    Put that under the 'Color' property and you should be good to go.

    This will change the text color and icon color (not the background color).

     

    The bordercolor won't do anything if your borderstyle is set to none or border thickness set to 0.

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Shubham_Yadav

    There is no need for the "= true" in your formula. IsSelected reduces to true or false. 

  • Shubham_Yadav Profile Picture
    10 on at

    @mdatson , thanks for reply, i updated in color property, but it is working sometime and some time not as shown below image

    Shubham_Yadav_0-1669815117261.png

    Also i have other gallery as well and i want one to be selected at a time if i paste same condition in both gallaries then two labels will be highlighted one in each gallary.

    Shubham_Yadav_1-1669815332020.png

     

  • Verified answer
    mdatson Profile Picture
    41 on at

    This video tutorial will help you: Power Apps Smart Navigation Menu 

    It performs exactly what you're looking for. you can apply the same techniques used here to your app.

  • Shubham_Yadav Profile Picture
    10 on at

    @Drrickryp , 

    thanks for reply, i updated in color property, but it is working sometime and some time not as shown below image

    Shubham_Yadav_0-1669815117261.png

    Also i have other gallery as well and i want one to be selected at a time if i paste same condition in both gallaries then two labels will be highlighted one in each gallary.

     

     

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 409 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 252 Most Valuable Professional

Last 30 days Overall leaderboard