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 / Changing HoverFill att...
Power Apps
Answered

Changing HoverFill attributes between different elements.

(0) ShareShare
ReportReport
Posted on by 11

I am using an element (Rectangle) under an icon (image). Both the element and the icon have the same function in OnSelect. I require that when the user performs the OnSelect function on the icon, he also changes the HoverFill color on the element. How can I do that?

Categories:
I have the same question (0)
  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @ClementeChH,

     

    Could you please share a bit more about the same function within the OnSelect property of the element and the icon?

     

    I have made a test on my side and please take a try with the following workaround:

     

    The OnSelect property of icon set to following formula:

    Collect(Collection1,{Name:"Kris Dai"});UpdateContext({HoverFillColor:Color.Red})

    The OnSelect property of element set to following formula:

    Collect(Collection1,{Name:"Teresa"})

    The HoverFill property of element set to following formula:

    HoverFillColor

     

    Best regards,

    Kris

  • Verified answer
    Andy_Tuke Profile Picture
    141 on at

    I create custom buttons in a similar way.  I have a circle icon, under a image icon (ie the + or pencil symbol).  To get the button to highlight when hovered I added a third circle in front of them.  This front circle has a transparent initial colour and is the only one of the 3 to have an On Select set.  Sinces its in front of the others it blocks them being clicked.

    The front circle then has its OnHover fill set to an opaque white colour so it looks like it highlights when hovered over.  I've attached an example app to demonstrate

     

    Andy
    Read my new blog at -
    www.powerappssolution.com

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 305 Most Valuable Professional

#2
11manish Profile Picture

11manish 212

#3
Valantis Profile Picture

Valantis 167

Last 30 days Overall leaderboard