Custom button hover issue
Feb 17, 2021
Hi,
I usually create custom buttons on projects and always have the same problem. A common example I use is an arrow inside of a circle so in effect, two objects (this is the same for some icons you can import from the standard library - many are more than one object).
In the above example I create the hover and select states on the circle as the circle represents the full area of the button. However, this set up causes an issue because if the user hovers over the arrow part of the button the hover state won't activate, nor will they be able to click on the button itself as the trigger is linked to the circle.
I've tried using hotspot which solves the clicking problem but then you can't have a hover and selected state.
I've tried grouping the circle and arrow so it effectively becomes one object but you can't edit states on groups.
I can't send the arrow back as it disappears behind the circle.
Is there a simple solution I'm missing?
TIA
5 Replies
Have you tried adding the icon into the state?
Wow, so simple! Just when I thought I was beginning to master my trade too - always learning, love it!
Thanks Phil
I tried doing this with one of my custom buttons but now, while the image and the button move together, there's an after-image or duplicate image that shows in the original location of the image. Any ideas?
Hi, InfoPros.
That's very strange! Are you able to share your .story file here or a screen recording so we can take a look at what's happening?
You could make the two objects one single graphic, and save a lot of fiddling around.