shape-based object only detect taps on text

So I have a lot of buttons in my game made using shape construction. They are mostly implemented like this:

playBtn = widget.newButton{ label = "Play Now", shape = "rect", width = 154, height = 40, onRelease = onPlayBtnRelease, font = gameSettings.defaultFont, strokeWidth = 2, strokeColor = { default = gameSettings.buttonStroke, over = gameSettings.buttonOverStroke}, fillColor = { default = gameSettings.fill, over = gameSettings.fill }, labelColor = { default = gameSettings.buttonStroke, over = gameSettings.buttonOverStroke}, }

I’ve had an issue with tap detection on these buttons, however. I’ve noticed that they only detect taps when the label is taped, not when the rest of the rectangle is taped. Is this normal? What would y’all recommend to fix it?

Thanks in advance!

What are your fill colors?

If the alpha is 0, I don’t think the widget will detect a touch in the rectangular area.

You were right, it was because I had the fill set to be completely transparent. Thanks for your help!

What are your fill colors?

If the alpha is 0, I don’t think the widget will detect a touch in the rectangular area.

You were right, it was because I had the fill set to be completely transparent. Thanks for your help!