Can the Click Area of a Button Be Expanded via Code?

I thought coded this before, but I can’t find the code snippet in my notes. Is there a way, using Velo, to expand the click area of a button?

I have a few tiny buttons that need a slightly larger click area.

Thank you.

I can’t think of a way to accomplish this by manipulating a button but i have one idea that might work

Use an icon with a larger transparent button behind it however big you need

Thank you for that.

That’s what I did. I’ve use this strategy a few times, but I could have sworn I did this before. Hmm. . .

Thanks again.

1 Like